Fix: NULL dereference in logging on btr allocation failure
[babeltrace.git] / plugins / ctf / common / btr / btr.c
index 0f4c1be1e7d8fa1805b6051e42f28f571d43d607..c802d83de667de9009eaabbfccb55abae5370ff1 100644 (file)
@@ -38,7 +38,7 @@
 
 #include "btr.h"
 
-#define PRINT_ERR_STREAM       btr->err_stream
+#define PRINT_ERR_STREAM       (btr ? btr->err_stream : stderr)
 #define PRINT_PREFIX           "ctf-btr"
 #include "../print.h"
 
This page took 0.022834 seconds and 4 git commands to generate.