From: mortenp Date: Sun, 20 Jun 2004 17:26:27 +0000 (+1000) Subject: assertions don't have error messages, so set errno=0 X-Git-Tag: RELEASE_1_0_0~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=400348a86efed492c1a9ca7534835832e3ec9dff;p=thirdparty%2Fmlmmj.git assertions don't have error messages, so set errno=0 --- diff --git a/include/mlmmj.h b/include/mlmmj.h index 62668be2..3f78beaf 100644 --- a/include/mlmmj.h +++ b/include/mlmmj.h @@ -56,6 +56,7 @@ struct mailhdr { void print_version(const char *prg); #define MY_ASSERT(expression) if (!(expression)) { \ + errno = 0; \ log_error(LOG_ARGS, "assertion failed"); \ exit(EXIT_FAILURE); \ }