diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-10-04 16:43:21 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-10-04 16:43:21 +0000 |
commit | 2280f82fc6718b8cc07775f7083c0dd663c3ff47 (patch) | |
tree | 83dfb457eace074172e10048c3e5fc33591f590a /apps/req.c | |
parent | e6714faffbdfc551ab8b2a50954519dff4bc7b15 (diff) |
Fix warnings about ignoring fgets return value
Diffstat (limited to 'apps/req.c')
-rw-r--r-- | apps/req.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/req.c b/apps/req.c index b97a9f187b..65cb19b4ee 100644 --- a/apps/req.c +++ b/apps/req.c @@ -1441,7 +1441,8 @@ start: buf[0]='\0'; if (!batch) { - fgets(buf,sizeof buf,stdin); + if (!fgets(buf,sizeof buf,stdin)) + return 0; } else { @@ -1499,7 +1500,8 @@ start: buf[0]='\0'; if (!batch) { - fgets(buf,sizeof buf,stdin); + if (!fgets(buf,sizeof buf,stdin)) + return 0; } else { |