blob: 90d0dd1ef84d2d6b93ac9f387939dd1f8218f473 (
plain)
1
2
3
4
5
6
7
8
9
|
--- shadow-4.0.18.2/libmisc/xmalloc.c 2007-10-07 12:47:22.000000000 +0100
+++ shadow-4.0.18.2/libmisc/xmalloc.c.new 2007-11-27 22:43:05.000000000 +0000
@@ -27,5 +27,6 @@
char *xstrdup (const char *str)
{
+ if(str == NULL) return NULL;
return strcpy (xmalloc (strlen (str) + 1), str);
}
|