Fix warning reported by static analysis tool 35/174035/1 accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20180404.063442 submit/tizen_4.0/20180403.105454
authorprathmeshm <prathmesh.m@samsung.com>
Tue, 27 Mar 2018 12:15:15 +0000 (17:45 +0530)
committerprathmeshm <prathmesh.m@samsung.com>
Tue, 27 Mar 2018 12:16:55 +0000 (17:46 +0530)
- Fix Id 107783
- Reported by coverity
- Uninitliized member variables

Change-Id: I3a8635d344b24311a31ffe4b4e3e068a0144da59
Signed-off-by: prathmeshm <prathmesh.m@samsung.com>
src/node/gcontext.cpp

index b6d559751efd42821ebd6f3d796335747ecfceb7..b62662c4efcbf0e0d9eef694656231de3f7b6463 100644 (file)
@@ -37,7 +37,16 @@ struct poll_handler {
     std::list<GPollFD*> fd_list;
 };
 
-GContext::GContext():initialized_(false){
+GContext::GContext()
+    : initialized_(false),
+      context_(NULL),
+      max_priority_(0),
+      fd_list_(NULL),
+      fd_list_size_(0),
+      fd_count_(0),
+      prepare_handle_(NULL),
+      check_handle_(NULL),
+      timeout_handle_(NULL){
 }
 
 GContext::~GContext(){