diff options
| author | mikeos <mike.osipov@gmail.com> | 2013-01-31 01:23:33 +0400 |
|---|---|---|
| committer | mikeos <mike.osipov@gmail.com> | 2013-01-31 01:23:33 +0400 |
| commit | 9de26ea193728ea08a3a90513bd7936be3101a37 (patch) | |
| tree | 63cc6588dbd89887df67cd686cf481c50aad9d55 /xwrap.c | |
| parent | 60a8965aaae80ad0890cb428720efa84399455e0 (diff) | |
add commandline options
Diffstat (limited to 'xwrap.c')
| -rw-r--r-- | xwrap.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); } |
