diff options
| author | Ron Yorston <rmy@pobox.com> | 2019-01-10 08:38:15 +0000 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2019-01-10 08:38:15 +0000 |
| commit | f99a280743e877c14ee90a3f9e93a34ca3476a27 (patch) | |
| tree | 60ca3d17596e190c8c7cbca587168946598bee8a /scripts/basic | |
| parent | 40d5dd07ea1f290eaed30a03fd598e33a8eaf495 (diff) | |
| parent | 6ca8e347fed8c24655df692f22694baf7c572770 (diff) | |
| download | busybox-w32-f99a280743e877c14ee90a3f9e93a34ca3476a27.tar.gz busybox-w32-f99a280743e877c14ee90a3f9e93a34ca3476a27.tar.bz2 busybox-w32-f99a280743e877c14ee90a3f9e93a34ca3476a27.zip | |
Merge branch 'busybox' into merge
Diffstat (limited to 'scripts/basic')
| -rw-r--r-- | scripts/basic/split-include.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/basic/split-include.c b/scripts/basic/split-include.c index 8127fe261..9a9260f2c 100644 --- a/scripts/basic/split-include.c +++ b/scripts/basic/split-include.c | |||
| @@ -133,7 +133,8 @@ int main(int argc, const char * argv []) | |||
| 133 | is_same = 0; | 133 | is_same = 0; |
| 134 | if ((fp_target = fopen(ptarget, "r")) != NULL) | 134 | if ((fp_target = fopen(ptarget, "r")) != NULL) |
| 135 | { | 135 | { |
| 136 | fgets(old_line, buffer_size, fp_target); | 136 | if (!fgets(old_line, buffer_size, fp_target)) |
| 137 | ERROR_EXIT(ptarget); | ||
| 137 | if (fclose(fp_target) != 0) | 138 | if (fclose(fp_target) != 0) |
| 138 | ERROR_EXIT(ptarget); | 139 | ERROR_EXIT(ptarget); |
| 139 | if (!strcmp(line, old_line)) | 140 | if (!strcmp(line, old_line)) |
