Fix: NULL dereference in logging on notit allocation failure
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 18:59:30 +0000 (14:59 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:45 +0000 (12:57 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/ctf/common/notif-iter/notif-iter.c

index b2aa08e44333eaf9dc2be5d77d889ed38d310a8c..9a7fcb2f0687c0c921a0bad8cba3a4d2b4f63ab1 100644 (file)
@@ -46,7 +46,7 @@
 #include <glib.h>
 #include <stdlib.h>
 
-#define PRINT_ERR_STREAM       notit->err_stream
+#define PRINT_ERR_STREAM       (notit ? notit->err_stream : stderr)
 #define PRINT_PREFIX           "ctf-notif-iter"
 #include "../print.h"
 
This page took 0.025659 seconds and 4 git commands to generate.