Broke print in last commit, fixed

This commit is contained in:
Pentium44 2021-04-07 19:25:45 -07:00
parent a8713fb367
commit a0712ae1e8

View File

@ -42,7 +42,7 @@ char *process_line(char *line)
{ {
char *parsed; char *parsed;
tok_srch = strtok(NULL, "\""); tok_srch = strtok(NULL, "\"");
if(strtok(NULL, "\"") == NULL) if(tok_srch == NULL)
syn_error("ss:error:print syntax error, missing quote?"); syn_error("ss:error:print syntax error, missing quote?");
parsed = parse_vars(tok_srch); parsed = parse_vars(tok_srch);