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