diff options
author | Denys Vlasenko | 2019-01-06 20:12:16 +0100 |
---|---|---|
committer | Denys Vlasenko | 2019-01-06 20:12:16 +0100 |
commit | 4bdc914ff97df0cea8d2c7b42bf7f57d5ebb8dcb (patch) | |
tree | 1e856a1649322d890d5a5b1c066dfe5678004148 /scripts/kconfig/conf.c | |
parent | 2d9e09796342ab202e780a6cb613b532c7356aec (diff) | |
download | busybox-4bdc914ff97df0cea8d2c7b42bf7f57d5ebb8dcb.zip busybox-4bdc914ff97df0cea8d2c7b42bf7f57d5ebb8dcb.tar.gz |
build system: fix compiler warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/kconfig/conf.c')
-rw-r--r-- | scripts/kconfig/conf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index 57734b5..866a7c5 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c @@ -142,7 +142,8 @@ static void conf_askvalue(struct symbol *sym, const char *def) check_stdin(); case ask_all: fflush(stdout); - fgets(line, 128, stdin); + if (!fgets(line, 128, stdin)) + exit(1); return; case set_default: printf("%s\n", def); @@ -390,7 +391,8 @@ static int conf_choice(struct menu *menu) check_stdin(); case ask_all: fflush(stdout); - fgets(line, 128, stdin); + if (!fgets(line, 128, stdin)) + exit(1); strip(line); if (line[0] == '?') { printf("\n%s\n", menu->sym->help ? |