From c806823559ba247f50eb369322f372cfc515f2a3 Mon Sep 17 00:00:00 2001 From: MyungJoo Ham Date: Fri, 30 Nov 2018 11:43:20 +0900 Subject: [PATCH] [Common/Conf] Fix coverity issue, uninitialized pointer read With auto-ptr, it tries to access read the pointer. Thus, it should be initialized somehow. Fixes Coverity Issue 1036166 Signed-off-by: MyungJoo Ham --- gst/nnstreamer/nnstreamer_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/nnstreamer/nnstreamer_conf.c b/gst/nnstreamer/nnstreamer_conf.c index add6261..d5c913f 100644 --- a/gst/nnstreamer/nnstreamer_conf.c +++ b/gst/nnstreamer/nnstreamer_conf.c @@ -204,7 +204,7 @@ gboolean nnstreamer_loadconf (gboolean force_reload) { g_autoptr (GError) error = NULL; - g_autoptr (GKeyFile) key_file; + g_autoptr (GKeyFile) key_file = NULL; GStatBuf gsbuf; int stt, i; -- 2.7.4