projects
/
collection4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0517ee
)
src/utils_search.c: Safeguard against NULL-pointer errors.
author
Florian Forster
<octo@verplant.org>
Sat, 11 Sep 2010 12:48:50 +0000
(14:48 +0200)
committer
Florian Forster
<octo@verplant.org>
Sat, 11 Sep 2010 12:48:50 +0000
(14:48 +0200)
src/utils_search.c
patch
|
blob
|
history
diff --git
a/src/utils_search.c
b/src/utils_search.c
index
1a1be7d
..
84c9035
100644
(file)
--- a/
src/utils_search.c
+++ b/
src/utils_search.c
@@
-198,6
+198,9
@@
search_info_t *search_parse (const char *search) /* {{{ */
char *token;
search_info_t *si;
+ if (search == NULL)
+ return (NULL);
+
si = malloc (sizeof (*si));
if (si == NULL)
return (NULL);