From b5435041f21c576f3be117aeb19bc94e721f425c Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sun, 24 May 2026 19:41:32 -0400 Subject: [PATCH] VALID() wasn't resetting invalid error contexts back to NULL before atempting to ENSURE_READY() them --- include/akerror.tmpl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/akerror.tmpl.h b/include/akerror.tmpl.h index 64a3d2b..bdeb586 100644 --- a/include/akerror.tmpl.h +++ b/include/akerror.tmpl.h @@ -186,6 +186,7 @@ void akerr_init_errno(void); #define VALID(__err_context, __stmt) \ __stmt; \ if ( akerr_valid_error_address(__err_context) == 0 ) { \ + __err_context = NULL; \ FAIL(__err_context, AKERR_BEHAVIOR, "Received (akerr_Error *) from an invalid memory region. (Did the method finish without calling SUCCEED_RETURN?)"); \ }