From 7fe8b491e19c8f4a64c97c876c563506157f3868 Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Sat, 29 Apr 2006 22:15:04 +0000 Subject: [PATCH] (main): Initialize docs to NULL. --- lib-src/ChangeLog | 2 ++ lib-src/sorted-doc.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 */ -- 2.39.5