Prevent crash if *line == NULL

This commit is contained in:
Holger Vogt 2023-06-13 19:56:07 +02:00
parent 2740d9a79b
commit b72f9516ac
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,9 @@ INPgetTok(char **line, char **token, int gobble)
char *point;
int signstate;
if (!*line)
return (E_PARMVAL);
/* scan along throwing away garbage characters until end of line
or a separation char is found */
for (point = *line; *point != '\0'; point++) {