diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-01-06 20:12:16 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-01-06 20:12:16 +0100 |
commit | 4bdc914ff97df0cea8d2c7b42bf7f57d5ebb8dcb (patch) | |
tree | 1e856a1649322d890d5a5b1c066dfe5678004148 /scripts/basic | |
parent | 2d9e09796342ab202e780a6cb613b532c7356aec (diff) | |
download | busybox-4bdc914ff97df0cea8d2c7b42bf7f57d5ebb8dcb.tar.gz |
build system: fix compiler warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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 e328788e2..791d142a8 100644 --- a/scripts/basic/split-include.c +++ b/scripts/basic/split-include.c @@ -131,7 +131,8 @@ int main(int argc, const char * argv []) is_same = 0; if ((fp_target = fopen(ptarget, "r")) != NULL) { - fgets(old_line, buffer_size, fp_target); + if (!fgets(old_line, buffer_size, fp_target)) + ERROR_EXIT(ptarget); if (fclose(fp_target) != 0) ERROR_EXIT(ptarget); if (!strcmp(line, old_line)) |