projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merged revisions 495:504, 508:509 and 510:513 from `trunk' to `tags/collectd-3.8.1'
[collectd.git]
/
src
/
common.c
diff --git
a/src/common.c
b/src/common.c
index
43a51a5
..
50a563a
100644
(file)
--- a/
src/common.c
+++ b/
src/common.c
@@
-56,6
+56,9
@@
char *sstrdup (const char *s)
{
char *r;
+ if (s == NULL)
+ return (NULL);
+
if((r = strdup (s)) == NULL)
{
DBG ("Not enough memory.");