[IF] Fix uninitialized value
authorGichan Jang <gichan2.jang@samsung.com>
Mon, 24 May 2021 04:59:24 +0000 (13:59 +0900)
committerSangjung Woo <again4you@gmail.com>
Mon, 24 May 2021 06:14:47 +0000 (15:14 +0900)
Fix uninitialized supplied value 2.
Don't need to check the number of the supplied value.

Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
gst/nnstreamer/tensor_if/gsttensorif.c

index 71665e5..f4eb7b6 100644 (file)
@@ -810,11 +810,9 @@ gst_tensor_if_get_comparison_result (GstTensorIf * tensor_if,
   svtc_1.data = tensor_if->sv->data[0];
   gst_tensor_data_typecast (&svtc_1, cv->type);
 
-  if (tensor_if->sv->num > 1) {
-    svtc_2.type = tensor_if->sv->type;
-    svtc_2.data = tensor_if->sv->data[1];
-    gst_tensor_data_typecast (&svtc_2, cv->type);
-  }
+  svtc_2.type = tensor_if->sv->type;
+  svtc_2.data = tensor_if->sv->data[1];
+  gst_tensor_data_typecast (&svtc_2, cv->type);
 
   switch (cv->type) {
     case _NNS_INT32: