diff options
author | Dan Nicolaescu <dann@ics.uci.edu> | 2006-04-29 22:15:04 +0000 |
---|---|---|
committer | Dan Nicolaescu <dann@ics.uci.edu> | 2006-04-29 22:15:04 +0000 |
commit | 9ee29cd94f09d2977eddf938b9cf1c63844731bf (patch) | |
tree | 7ea5f0859889b21917f28d91cc945412276d4c19 /lib-src | |
parent | 3f11fca0cc73cba598aa5c092d3fd92d541064e3 (diff) | |
download | emacs-9ee29cd94f09d2977eddf938b9cf1c63844731bf.tar.gz |
(main): Initialize docs to NULL.
Diffstat (limited to 'lib-src')
-rw-r--r-- | lib-src/ChangeLog | 2 | ||||
-rw-r--r-- | lib-src/sorted-doc.c | 2 |
2 files changed, 3 insertions, 1 deletions
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 <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. 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 */ |