From c0ad4481bda4c705f7417b2baf79d3335f9d7941 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Wed, 15 Dec 2021 14:25:09 -0500 Subject: [PATCH] Fix tokens.c missing-error-code bug. --- src/tokens.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tokens.c b/src/tokens.c index fb1a543..07bebe4 100644 --- a/src/tokens.c +++ b/src/tokens.c @@ -137,6 +137,7 @@ struct Slice *nf_tokenize(const char *input, struct Error *err) if(parens != 0){ err->context = malloc(sizeof(char) * ERR_LEN); + err->code = MISMATCHED_PARENS; int start = i > ERR_LEN ? i - ERR_LEN : 0; strncpy(err->context, &input[start], ERR_LEN); free(slices);