diff options
Diffstat (limited to 'src/lib/main.c')
| -rw-r--r-- | src/lib/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/main.c b/src/lib/main.c index ae17f34..d6de538 100644 --- a/src/lib/main.c +++ b/src/lib/main.c @@ -79,6 +79,10 @@ aplwc_read(struct aplwc *aplwc, const char *line) if(tokens == NULL) return NULL; + aplwc->last_error = check_tokens(tokens); + if(aplwc->last_error != APLWC_OK) + return NULL; + ret = memory_alloc_aplwc_line(&aplwc->memory); if(ret == NULL){ aplwc->last_error = APLWC_OUT_OF_MEMORY; |