Fix: check return value of bt_context_create
PATCH 1/1 Fix: check return value of bt_context_create
In reply to a message not in the archiveSigned-off-by Julien Desfossez <[email protected]>
--- converter/babeltrace.c | 3 +++ 1 file changed, 3 insertions(+)
converter/babeltrace.c +3 -0
@@ -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 );
Signature · 1 line
1.7.10.4
Mathieu Desnoyers
AppliedQuoted 1 line · * Julien Desfossez ([email protected]) wrote:
Signed-off-by Julien Desfossez <[email protected]>
Merged, thanks!
Mathieu
Quoted 21 lines
--- converter/babeltrace.c | 3 +++ 1 file changed, 3 insertions(+)converter/babeltrace.c +3
-0@@ -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 );Signature · 1 line
1.7.10.4
Signature · 4 lines
Mathieu Desnoyers Operating System Efficiency R&D Consultant EfficiOS Inc. http://www.efficios.com