aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1995-12-25 03:26:26 +0000
committerPeter Wemm <peter@FreeBSD.org>1995-12-25 03:26:26 +0000
commit9e4b2b92b8860e1289dc06bac04c601fc2bb9c1f (patch)
treeaaea7b2fa8d3b9876139b2671ef9e1667473682d
parent665823d01144d86df29f0d7c4911553be5b73951 (diff)
Bah humbug!
Two uninitialised variables were causing a phkmalloc warning (another notch in phkmalloc's belt) and caused the full rcstemplate to not be constructed for commits on freefall.
Notes
Notes: svn path=/head/; revision=13010
-rw-r--r--gnu/usr.bin/cvs/cvs/logmsg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/cvs/cvs/logmsg.c b/gnu/usr.bin/cvs/cvs/logmsg.c
index 5f2763fcce5f..7686a3680a67 100644
--- a/gnu/usr.bin/cvs/cvs/logmsg.c
+++ b/gnu/usr.bin/cvs/cvs/logmsg.c
@@ -294,8 +294,8 @@ rcsinfo_proc (repository, template)
if ((tfp = fopen (template, "r")) != NULL)
{
- char *line;
- size_t line_chars_allocated;
+ char *line = NULL;
+ size_t line_chars_allocated = 0;
while (getline (&line, &line_chars_allocated, tfp) >= 0)
(void) fputs (line, fp);