summaryrefslogtreecommitdiffstats
path: root/apps/openssl.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-10-04 16:42:56 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-10-04 16:42:56 +0000
commit0e039aa7976eb2278339441125473d7219bee413 (patch)
treecbdc049f9c280a52366b89d62b03a363e02f9e46 /apps/openssl.c
parentc21869fb07ea02ffd46e817caeb47d85a85ee8ef (diff)
Fix warnings about ignoring fgets return value
Diffstat (limited to 'apps/openssl.c')
-rw-r--r--apps/openssl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/openssl.c b/apps/openssl.c
index c9d9fe9288..851e639735 100644
--- a/apps/openssl.c
+++ b/apps/openssl.c
@@ -330,7 +330,8 @@ int main(int Argc, char *Argv[])
else prompt="OpenSSL> ";
fputs(prompt,stdout);
fflush(stdout);
- fgets(p,n,stdin);
+ if (!fgets(p,n,stdin))
+ goto end;
if (p[0] == '\0') goto end;
i=strlen(p);
if (i <= 1) break;