diff options
Diffstat (limited to 'src/lib/syntax.c')
| -rw-r--r-- | src/lib/syntax.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/syntax.c b/src/lib/syntax.c index 6e08d1b..23138ed 100644 --- a/src/lib/syntax.c +++ b/src/lib/syntax.c @@ -286,8 +286,10 @@ scan_string(struct aplwc *aplwc, struct string *text, int oneline) goto end; tokens = memory_alloc_token_list(aplwc, n); - if(tokens == NULL) + if(tokens == NULL){ + rc = aplwc->last_error; goto end; + } tokens->text = text; tokens->length = n; scan(text, tokens); |