From: Philippe Proulx Date: Fri, 9 Aug 2019 19:06:37 +0000 (-0400) Subject: Fix: plugin-so.c: dereference before `NULL` check X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=ea251e8bedf36bd947e890604de3943791afbd44 Fix: plugin-so.c: dereference before `NULL` check Found by Coverity Scan. Signed-off-by: Philippe Proulx Change-Id: I36ae818417b9f9902a561641e83d6e24837be462 --- diff --git a/src/lib/plugin/plugin-so.c b/src/lib/plugin/plugin-so.c index ae795598..770b0413 100644 --- a/src/lib/plugin/plugin-so.c +++ b/src/lib/plugin/plugin-so.c @@ -1350,7 +1350,7 @@ int bt_plugin_so_create_all_from_sections( goto error; } - if (shared_lib_handle && shared_lib_handle->path) { + if (shared_lib_handle->path) { bt_plugin_set_path(plugin, shared_lib_handle->path->str); }