From: Dan Nicolaescu Date: Sat, 29 Apr 2006 22:15:04 +0000 (+0000) Subject: (main): Initialize docs to NULL. X-Git-Tag: emacs-pretest-22.0.90~2898 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7fe8b491e19c8f4a64c97c876c563506157f3868;p=emacs.git (main): Initialize docs to NULL. --- diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 1118ac226e2..115e43c2d03 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,5 +1,7 @@ 2006-04-29 Dan Nicolaescu + * sorted-doc.c (main): Initialize docs to NULL. + * yow.c (yow): Free buf. * etags.c: Delete c-indentation-style local variable. diff --git a/lib-src/sorted-doc.c b/lib-src/sorted-doc.c index a2416993a1b..0a06aa2c984 100644 --- a/lib-src/sorted-doc.c +++ b/lib-src/sorted-doc.c @@ -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 */