]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Tweak ASSERT and ASSERT2 definitions
authorEric Bollengier <eric@baculasystems.com>
Wed, 2 Dec 2020 12:34:04 +0000 (13:34 +0100)
committerEric Bollengier <eric@baculasystems.com>
Sat, 12 Dec 2020 15:35:43 +0000 (16:35 +0100)
bacula/src/baconfig.h

index 3a8c7546f6e7e837e4919e27db411799c619698a..7310f8ad9d49762c280095d6ea8ff6df73acebe4 100644 (file)
 
 #ifdef DEBUG
 #define ASSERT(x) if (!(x)) { \
-   char *jcr = NULL; \
+   char *tjcr = NULL; \
    Emsg1(M_ERROR, 0, _("Failed ASSERT: %s\n"), #x); \
    Pmsg1(000, _("Failed ASSERT: %s\n"), #x); \
-   jcr[0] = 0; }
+   tjcr[0] = 0; }
 
 #define ASSERT2(x,y) if (!(x)) { \
    set_assert_msg(__FILE__, __LINE__, y); \
    Emsg1(M_ERROR, 0, _("Failed ASSERT: %s\n"), #x); \
    Pmsg1(000, _("Failed ASSERT: %s\n"), #x); \
-   char *jcr = NULL; \
-   jcr[0] = 0; }
+   char *tjcr = NULL; \
+   tjcr[0] = 0; }
 #else
 #define ASSERT(x)
 #define ASSERT2(x, y)