]> git.eshelyaron.com Git - emacs.git/commitdiff
(main): Initialize docs to NULL.
authorDan Nicolaescu <dann@ics.uci.edu>
Sat, 29 Apr 2006 22:15:04 +0000 (22:15 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Sat, 29 Apr 2006 22:15:04 +0000 (22:15 +0000)
lib-src/ChangeLog
lib-src/sorted-doc.c

index 1118ac226e23688b92b6f1203d6ea98266c6e68d..115e43c2d03f3efcc3c45332a9daea1be83ea012 100644 (file)
@@ -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.
index a2416993a1b4b9f6ba506c29bd78dcc1c7cffd07..0a06aa2c984caf571f42ec7f15dacb20bd149f10 100644 (file)
@@ -131,7 +131,7 @@ main ()
   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 */