Fix: check return value of bt_context_create
authorJulien Desfossez <jdesfossez@efficios.com>
Tue, 21 Aug 2012 14:45:07 +0000 (10:45 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 21 Aug 2012 14:45:07 +0000 (10:45 -0400)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
converter/babeltrace.c

index f5541d2cd2bd3826e0a00aaa22d0cc196f76e93a..c9007c3d9c9f2f5c467c4e9435d4055dd474a06c 100644 (file)
@@ -549,6 +549,9 @@ int main(int argc, char **argv)
        }
 
        ctx = bt_context_create();
+       if (!ctx) {
+               goto error_td_read;
+       }
 
        ret = bt_context_add_traces_recursive(ctx, opt_input_path,
                        opt_input_format, NULL);
This page took 0.033054 seconds and 4 git commands to generate.