mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 13:57:32 +02:00
Revert "Prevent crash if *line == NULL"
This reverts commit b72f9516ac.
This commit is contained in:
@@ -31,9 +31,6 @@ INPgetTok(char **line, char **token, int gobble)
|
|||||||
char *point;
|
char *point;
|
||||||
int signstate;
|
int signstate;
|
||||||
|
|
||||||
if (!*line)
|
|
||||||
return (E_PARMVAL);
|
|
||||||
|
|
||||||
/* scan along throwing away garbage characters until end of line
|
/* scan along throwing away garbage characters until end of line
|
||||||
or a separation char is found */
|
or a separation char is found */
|
||||||
for (point = *line; *point != '\0'; point++) {
|
for (point = *line; *point != '\0'; point++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user