~mdw
/
sgt
/
halibut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Missing error handling: the HTML and WinHelp back ends would both
[sgt/halibut]
/
malloc.c
diff --git
a/malloc.c
b/malloc.c
index
1635b47
..
2ff22fd
100644
(file)
--- a/
malloc.c
+++ b/
malloc.c
@@
-101,10
+101,10
@@
char *dupstr(char *s) {
* Duplicate a linked list of words
*/
word *dup_word_list(word *w) {
* Duplicate a linked list of words
*/
word *dup_word_list(word *w) {
- word *head, **eptr = &head;
+ word *head
= NULL
, **eptr = &head;
while (w) {
while (w) {
- word *newwd =
mk
new(word);
+ word *newwd =
s
new(word);
*newwd = *w; /* structure copy */
newwd->text = ustrdup(w->text);
if (w->alt)
*newwd = *w; /* structure copy */
newwd->text = ustrdup(w->text);
if (w->alt)