]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
assertions don't have error messages, so set errno=0
authormortenp <none@none>
Sun, 20 Jun 2004 17:26:27 +0000 (03:26 +1000)
committermortenp <none@none>
Sun, 20 Jun 2004 17:26:27 +0000 (03:26 +1000)
include/mlmmj.h

index 62668be2bc76e745a94f18b16041557cf0d37e87..3f78beaf4026c1564c683af5a30d42b5afd9502a 100644 (file)
@@ -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); \
                }