From 9de26ea193728ea08a3a90513bd7936be3101a37 Mon Sep 17 00:00:00 2001 From: mikeos Date: Thu, 31 Jan 2013 01:23:33 +0400 Subject: add commandline options --- xwrap.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xwrap.c') diff --git a/xwrap.c b/xwrap.c index fe158f5..e2db116 100644 --- a/xwrap.c +++ b/xwrap.c @@ -17,7 +17,11 @@ char *xstrdup(const char *s) { int len; + if (s == NULL) + return NULL; + len = strlen(s) + 1; + return memcpy(xmalloc(len), s, len); } -- cgit v1.2.3-70-g09d2