summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2007-09-25 21:41:22 +0000
committeredwin <edwin@FreeBSD.org>2007-09-25 21:41:22 +0000
commitc2ea759143645bf844d212ae502103d41e0e1f87 (patch)
treeee8243c9bed15d516f6d80a7820bd075226898da /gnu
parent422753af04dbb4b35f1007b2d48aa571f767f32f (diff)
downloadFreeBSD-src-c2ea759143645bf844d212ae502103d41e0e1f87.zip
FreeBSD-src-c2ea759143645bf844d212ae502103d41e0e1f87.tar.gz
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)
Diffstat (limited to 'gnu')
-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 cb88053..2cdd22a 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);
OpenPOWER on IntegriCloud