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