[Tests/Source/IIO] Fix defects (CWE-637) found from Coverity
authorWook Song <wook16.song@samsung.com>
Fri, 8 Nov 2019 15:06:22 +0000 (00:06 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 11 Nov 2019 08:31:54 +0000 (17:31 +0900)
commitdb7ba3043beb8152df28c75f2986b4c885e77b3a
treecb5ed87dbd2e8b2a74c882bb6c8c8de548e96151
parent96d7e4f3c9de13f40f3025cb2f22736b5529635a
[Tests/Source/IIO] Fix defects (CWE-637) found from Coverity

This patch fixes defects related to CWE-637 found from Coverity.

Coverity-scan: CID-263387, CID-263398, CID-263366, CID-263406,
               CID-263410, CID-263372, CID-263390, CID-263361,
       CID-263414

Signed-off-by: Wook Song <wook16.song@samsung.com>
tests/nnstreamer_source/unittest_src_iio.cpp