[Coverity] Fix coverity issue.
authorgichan <gichan2.jang@samsung.com>
Mon, 4 Jul 2022 07:57:04 +0000 (16:57 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Mon, 4 Jul 2022 08:12:29 +0000 (17:12 +0900)
commit78b8623b5d3179f2afd78e394aba955455df4e8d
tree4b7e6dd2e4da2157a0ddf2a12e258854d726338d
parent92e438dcbb0880b84b2b22f00e3c9651242763e7
[Coverity] Fix coverity issue.

 - Initialize command before using to avoid tained data.
 - Check return value whether it is negative or not.

Signed-off-by: gichan <gichan2.jang@samsung.com>
src/libnnstreamer-edge/nnstreamer-edge-internal.c