Blame SOURCES/bacula-5.2.12-seg-fault.patch

24b8b9
diff --git a/src/lib/message.c b/src/lib/message.c
24b8b9
index 24afdf1..5d2c2ef 100644
24b8b9
--- a/src/lib/message.c
24b8b9
+++ b/src/lib/message.c
24b8b9
@@ -37,6 +37,7 @@
24b8b9
  *
24b8b9
  */
24b8b9
 
24b8b9
+#include <assert.h>
24b8b9
 #include "bacula.h"
24b8b9
 #include "jcr.h"
24b8b9
 
24b8b9
@@ -1230,7 +1231,8 @@ e_msg(const char *file, int line, int type, int level, const char *fmt,...)
24b8b9
 
24b8b9
     if (type == M_ABORT) {
24b8b9
        char *p = 0;
24b8b9
-       p[0] = 0;                      /* generate segmentation violation */
24b8b9
+       //p[0] = 0;                      /* generate segmentation violation */
24b8b9
+	   assert(p!=NULL);
24b8b9
     }
24b8b9
     if (type == M_ERROR_TERM) {
24b8b9
        exit(1);