summaryrefslogtreecommitdiff
path: root/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc.c')
-rw-r--r--malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/malloc.c b/malloc.c
index 6612fef..2ff22fd 100644
--- a/malloc.c
+++ b/malloc.c
@@ -101,7 +101,7 @@ char *dupstr(char *s) {
* Duplicate a linked list of words
*/
word *dup_word_list(word *w) {
- word *head, **eptr = &head;
+ word *head = NULL, **eptr = &head;
while (w) {
word *newwd = snew(word);