aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2007-09-25 21:41:22 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2007-09-25 21:41:22 +0000
commite06a060ed36afe294ddf0f26622a3b68263935bc (patch)
treeee8243c9bed15d516f6d80a7820bd075226898da
parent17c53e4a2899c34e9ce6f7cf2a5f0d481ec6335b (diff)
downloadsrc-e06a060ed36afe294ddf0f26622a3b68263935bc.tar.gz
src-e06a060ed36afe294ddf0f26622a3b68263935bc.zip
Fix possible uninitialized variable insert due to previous commit.
Pointy hat to: me and my absence of -Wall in my CFLAGS. MFC will happen at the same time of the earlier commit. Thanks to ru@ for spotting. Approved by: re (Ken Smith), grog@ (mentor)
Notes
Notes: svn path=/head/; revision=172325
-rw-r--r--gnu/usr.bin/man/man/man.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/man/man/man.c b/gnu/usr.bin/man/man/man.c
index cb88053fb753..2cdd22a76b30 100644
--- a/gnu/usr.bin/man/man/man.c
+++ b/gnu/usr.bin/man/man/man.c
@@ -898,7 +898,7 @@ ultimate_source (name, path)
#endif
#if HAVE_LIBZ > 0
- gzgets (fp, buf, BUFSIZ);
+ end = gzgets (fp, buf, BUFSIZ);
gzclose(fp);
#else
end = fgets (buf, BUFSIZ, fp);