2014-05-15 14:02:42 +00:00
|
|
|
diff -Naur bacula-7.0.3.old/src/lib/message.c bacula-7.0.3/src/lib/message.c
|
|
|
|
--- bacula-7.0.3.old/src/lib/message.c 2014-05-15 15:45:13.744148767 +0200
|
|
|
|
+++ bacula-7.0.3/src/lib/message.c 2014-05-15 15:51:08.911250228 +0200
|
|
|
|
@@ -25,6 +25,7 @@
|
2013-02-04 13:04:50 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
+#include <assert.h>
|
|
|
|
#include "bacula.h"
|
|
|
|
#include "jcr.h"
|
|
|
|
|
2014-05-15 14:02:42 +00:00
|
|
|
@@ -1322,7 +1323,8 @@
|
2013-02-04 13:04:50 +00:00
|
|
|
|
|
|
|
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);
|