From 818bd19798342a9716981fd8ff5ca8e822d6bb6e Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Tue, 13 Jun 2023 20:02:27 +0200 Subject: [PATCH] Revert "Prevent crash if *line == NULL" This reverts commit b72f9516ac85793af01b343eb7779a9b4a7ba56f. --- src/spicelib/parser/inpgtok.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/spicelib/parser/inpgtok.c b/src/spicelib/parser/inpgtok.c index 189420fae..58ece2fc1 100644 --- a/src/spicelib/parser/inpgtok.c +++ b/src/spicelib/parser/inpgtok.c @@ -31,9 +31,6 @@ 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++) {