summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5835a87)
raw | patch | inline | side by side (parent: 5835a87)
author | octo <octo> | |
Fri, 10 Mar 2006 11:16:21 +0000 (11:16 +0000) | ||
committer | octo <octo> | |
Fri, 10 Mar 2006 11:16:21 +0000 (11:16 +0000) |
src/common.c | patch | blob | history |
diff --git a/src/common.c b/src/common.c
index 43a51a57c5aa7db29ec401852d8919a66404611b..50a563a3ea41b95bb64e19c6451f749ec076313c 100644 (file)
--- a/src/common.c
+++ b/src/common.c
{
char *r;
+ if (s == NULL)
+ return (NULL);
+
if((r = strdup (s)) == NULL)
{
DBG ("Not enough memory.");