aboutsummaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2019-01-06 20:12:16 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2019-01-06 20:12:16 +0100
commit4bdc914ff97df0cea8d2c7b42bf7f57d5ebb8dcb (patch)
tree1e856a1649322d890d5a5b1c066dfe5678004148 /scripts/basic
parent2d9e09796342ab202e780a6cb613b532c7356aec (diff)
downloadbusybox-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.c3
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))