From 9e4b2b92b8860e1289dc06bac04c601fc2bb9c1f Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Mon, 25 Dec 1995 03:26:26 +0000 Subject: [PATCH] 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. --- gnu/usr.bin/cvs/cvs/logmsg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/usr.bin/cvs/cvs/logmsg.c b/gnu/usr.bin/cvs/cvs/logmsg.c index 5f2763fcce5..7686a3680a6 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);