Fix Save : uninitialized variables (#1276) accepted/tizen/unified/20180518.120434 submit/tizen/20180518.065533
author이춘석/동작제어Lab(SR)/Senior Engineer/삼성전자 <chunseok.lee@samsung.com>
Fri, 18 May 2018 06:14:38 +0000 (15:14 +0900)
committerChunseok Lee <chunseok.lee@samsung.com>
Fri, 18 May 2018 06:53:17 +0000 (15:53 +0900)
WGID : 346191
WID:50342767 Constructor declared at simple_model.cpp:29 may not initialize class members of 'SimpleModel'. Following members aren't initialized: memoryInput2_, memoryOutput_, inputTensor2Fd_, outputTensorFd_.

Change-Id: Id88b6412173f69359b489133c2326a3c629d0a40
Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
runtimes/tests/bring_up_test/simple_model.cpp

index 86d34db..f56ba75 100644 (file)
 SimpleModel::SimpleModel(size_t size, int protect, int fd, size_t offset) :
         model_(nullptr),
         compilation_(nullptr),
+        memoryModel_(nullptr),
+        memoryInput2_(nullptr),
+        memoryOutput_(nullptr),
+        inputTensor2Fd_(-1),
+        outputTensorFd_(-1),
         dimLength_(TENSOR_SIZE),
         modelDataFd_(fd),
         offset_(offset) {