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

37aee9
diff -Naur bacula-9.0.0.old/src/lib/message.c bacula-9.0.0/src/lib/message.c
37aee9
--- bacula-9.0.0.old/src/lib/message.c	2017-07-10 08:52:38.928834471 +0200
37aee9
+++ bacula-9.0.0/src/lib/message.c	2017-07-10 09:04:34.923403834 +0200
37aee9
@@ -28,6 +28,7 @@
37aee9
  *
37aee9
  */
37aee9
 
37aee9
+#include <assert.h>
37aee9
 #include "bacula.h"
37aee9
 #include "jcr.h"
37aee9
 
37aee9
@@ -1367,7 +1368,8 @@
37aee9
 
37aee9
     if (type == M_ABORT) {
37aee9
        char *p = 0;
37aee9
-       p[0] = 0;                      /* generate segmentation violation */
37aee9
+       // p[0] = 0;                      /* generate segmentation violation */
37aee9
+       assert(p!=NULL);
37aee9
     }
37aee9
     if (type == M_ERROR_TERM) {
37aee9
        exit(1);