Fix NULL pointer reference.

This commit is contained in:
mycroft 1993-04-28 07:17:18 +00:00
parent b740fbac92
commit ca38c8eafb
1 changed files with 4 additions and 0 deletions

View File

@ -136,6 +136,10 @@ askuser(dflt)
if (p = index(answer, '\n'))
*p = '\0';
if (!answer[0] && !dflt)
continue;
return (answer[0] ? answer : dflt);
}
}