VALID() wasn't resetting invalid error contexts back to NULL before atempting to ENSURE_READY() them

This commit is contained in:
2026-05-24 19:41:32 -04:00
parent 235033d633
commit b5435041f2

View File

@@ -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?)"); \
}