parent
d74b327256
commit
7b67bbb5e2
@ -0,0 +1,13 @@
|
||||
diff --git a/misc.c b/misc.c
|
||||
index 43e93a2..178fda9 100644
|
||||
--- a/misc.c
|
||||
+++ b/misc.c
|
||||
@@ -56,6 +56,8 @@ register const char *str;
|
||||
{
|
||||
register char *cp;
|
||||
|
||||
+ if(str == NULL)
|
||||
+ Panic(0, "SaveStr() received NULL - possibly failed crypt()");
|
||||
if ((cp = malloc(strlen(str) + 1)) == NULL)
|
||||
Panic(0, "%s", strnomem);
|
||||
else
|
Loading…
Reference in new issue