From ea251e8bedf36bd947e890604de3943791afbd44 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Fri, 9 Aug 2019 15:06:37 -0400 Subject: [PATCH] Fix: plugin-so.c: dereference before `NULL` check Found by Coverity Scan. Signed-off-by: Philippe Proulx Change-Id: I36ae818417b9f9902a561641e83d6e24837be462 --- src/lib/plugin/plugin-so.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.34.1