[TF-Lite] Add terminating null
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 3 Sep 2019 05:37:16 +0000 (14:37 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 3 Sep 2019 06:57:00 +0000 (15:57 +0900)
The string list requires a terminating null.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
ext/nnstreamer/tensor_filter/tensor_filter_tensorflow_lite.c

index 2b5ca12..513ed72 100644 (file)
@@ -39,7 +39,8 @@ static const char *nnapi_hw_string[] = {
   [NNAPI_CPU] = "cpu",
   [NNAPI_GPU] = "gpu",
   [NNAPI_NPU] = "npu",
-  [NNAPI_UNKNOWN] = "unknown"
+  [NNAPI_UNKNOWN] = "unknown",
+  NULL
 };
 
 void init_filter_tflite (void) __attribute__ ((constructor));