From 81efaaac078dc947a1217cc6bd9c54b94b04b78e Mon Sep 17 00:00:00 2001 From: William Bell <62452284+Ugric@users.noreply.github.com> Date: Wed, 17 Sep 2025 17:25:42 +0100 Subject: [PATCH] fix path bug --- src/err.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/err.c b/src/err.c index 0b3b742..f637276 100644 --- a/src/err.c +++ b/src/err.c @@ -67,7 +67,11 @@ ArErr create_err(int64_t line, int64_t column, int length, char *path, const char *type, const char *fmt, ...) { ArErr err; err.exists = true; - strcpy(err.path, path); + if (path) + strcpy(err.path, path); + else { + err.path[0] = '\0'; + } err.line = line; err.column = column; err.length = length;