projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't try to call res_init() if ./configure told us it doesn't exist.
[tinc]
/
src
/
xmalloc.c
diff --git
a/src/xmalloc.c
b/src/xmalloc.c
index
1e40017
..
39dc03c
100644
(file)
--- a/
src/xmalloc.c
+++ b/
src/xmalloc.c
@@
-113,6
+113,9
@@
char *xstrdup(const char *s)
{
char *p;
+ if(!s)
+ return NULL;
+
p = strdup(s);
if(!p)
xalloc_fail ((int)strlen(s));