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