changeset 70285:0f15a453179c

(main): Initialize docs to NULL.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sat, 29 Apr 2006 22:15:04 +0000
parents 1a11061f92fa
children b0649e01002b
files lib-src/ChangeLog lib-src/sorted-doc.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/ChangeLog	Sat Apr 29 21:36:04 2006 +0000
+++ b/lib-src/ChangeLog	Sat Apr 29 22:15:04 2006 +0000
@@ -1,5 +1,7 @@
 2006-04-29  Dan Nicolaescu  <dann@ics.uci.edu>
 
+	* sorted-doc.c (main): Initialize docs to NULL.
+
 	* yow.c (yow): Free buf.
 
 	* etags.c: Delete c-indentation-style local variable.
--- a/lib-src/sorted-doc.c	Sat Apr 29 21:36:04 2006 +0000
+++ b/lib-src/sorted-doc.c	Sat Apr 29 22:15:04 2006 +0000
@@ -131,7 +131,7 @@
   register enum state state = WAITING; /* state at start */
   int cnt = 0;			/* number of DOCSTRs read */
 
-  DOCSTR *docs;			/* chain of allocated DOCSTRS */
+  DOCSTR *docs = NULL;          /* chain of allocated DOCSTRS */
   char buf[512];		/* line buffer */
 
   while (1)			/* process one char at a time */