[Common/Conf] Fix coverity issue, uninitialized pointer read
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 30 Nov 2018 02:43:20 +0000 (11:43 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Fri, 30 Nov 2018 03:45:15 +0000 (12:45 +0900)
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 <myungjoo.ham@samsung.com>
gst/nnstreamer/nnstreamer_conf.c

index add6261..d5c913f 100644 (file)
@@ -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;