[Svace] fix save issues for python filter
authorDongju Chae <dongju.chae@samsung.com>
Mon, 17 Jun 2019 02:09:23 +0000 (11:09 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Mon, 17 Jun 2019 23:08:38 +0000 (08:08 +0900)
Update files to fix svace issue

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
ext/nnstreamer/tensor_filter/tensor_filter_python_core.cc

index 07e6e49..eb8c2c3 100644 (file)
@@ -92,6 +92,7 @@ PYCore::PYCore (const char* _script_path, const char* _custom)
   PyObject *api_module = PyImport_ImportModule("nnstreamer_python");
   g_assert(api_module);
   shape_cls = PyObject_GetAttrString(api_module, "TensorShape"); 
+  g_assert(shape_cls);
   Py_XDECREF(api_module);
 
   gst_tensors_info_init (&inputTensorMeta);