projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a few more memory and resource leaks.
[u/mdw/putty]
/
wildcard.c
diff --git
a/wildcard.c
b/wildcard.c
index
ae8bad8
..
c1cb0b4
100644
(file)
--- a/
wildcard.c
+++ b/
wildcard.c
@@
-326,7
+326,8
@@
int wc_unescape(char *output, const char *wildcard)
wildcard++;
}
}
- *output = '\0';
+ if (output)
+ *output = '\0';
return 1; /* it's clean */
}