projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52933af
)
string: Set result pointer to NULL on errors.
author
Andre Noll
<maan@systemlinux.org>
Sun, 28 Aug 2011 04:35:37 +0000
(06:35 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Sat, 3 Sep 2011 14:40:37 +0000
(16:40 +0200)
...and be strict in what you return.
string.c
patch
|
blob
|
history
diff --git
a/string.c
b/string.c
index
b16109c
..
0a32c0f
100644
(file)
--- a/
string.c
+++ b/
string.c
@@
-762,6
+762,7
@@
err:
while (num_words > 0)
free(argv[--num_words]);
free(argv);
+ *result = NULL;
return ret;
}