From 3f1c8e28e9b474a2455e737ef588761a1b18a358 Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Wed, 12 Nov 2025 14:08:41 -0600 Subject: [PATCH] Try fix error state? --- src/error/error.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/error/error.h b/src/error/error.h index 5155eca..9c4f295 100644 --- a/src/error/error.h +++ b/src/error/error.h @@ -24,7 +24,9 @@ typedef struct { static const errorcode_t ERROR_OK = 0; static const errorcode_t ERROR_NOT_OK = 1; -#define ERROR_STATE_INIT ((errorstate_t){ ERROR_OK, NULL, NULL }) +#define ERROR_STATE_INIT ((errorstate_t){ \ + .code = ERROR_OK, .message = NULL, .lines = NULL \ +}) static const char_t *ERROR_PRINT_FORMAT = "Error (%d): %s\n%s"; static const char_t *ERROR_LINE_FORMAT = " at %s:%d in function %s\n";