diff options
Diffstat (limited to 'src/lib/syntax.c')
| -rw-r--r-- | src/lib/syntax.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/syntax.c b/src/lib/syntax.c index 9888bef..16d0363 100644 --- a/src/lib/syntax.c +++ b/src/lib/syntax.c @@ -247,10 +247,8 @@ scan_string(struct aplwc *aplwc, struct string *text, int oneline) } tokens = memory_alloc_token_list(aplwc, n); - if(tokens == NULL){ - aplwc->last_error = APLWC_OUT_OF_MEMORY; + if(tokens == NULL) return NULL; - } tokens->text = text; tokens->length = n; scan(text, tokens); |