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