check crypt output for SaveStr()

This commit is contained in:
Alexander Naumov
2023-02-01 13:32:20 +02:00
parent e9ad41bfed
commit 027bc6d470

View File

@@ -57,6 +57,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