22 lines
626 B
Diff
22 lines
626 B
Diff
diff -Naur bacula-9.6.5.old/src/lib/message.c bacula-9.6.5/src/lib/message.c
|
|
--- bacula-9.6.5.old/src/lib/message.c 2020-07-24 09:11:40.900118460 +0200
|
|
+++ bacula-9.6.5/src/lib/message.c 2020-07-24 09:12:48.705149825 +0200
|
|
@@ -28,6 +28,7 @@
|
|
*
|
|
*/
|
|
|
|
+#include <assert.h>
|
|
#include "bacula.h"
|
|
#include "jcr.h"
|
|
|
|
@@ -1429,7 +1430,8 @@
|
|
|
|
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);
|