Removed warnings related to unintialized variables 93/32493/1
authorAnkur <ankur29.garg@samsung.com>
Thu, 18 Dec 2014 13:58:45 +0000 (19:28 +0530)
committerAnkur <ankur29.garg@samsung.com>
Thu, 18 Dec 2014 13:58:51 +0000 (19:28 +0530)
-Warnings related to variables being used without initialization. Intialized the variables.
Actually, the variables were not beng used without initialization but the cases where the variables are being used are mutually exclusive.
So, varaibles have to be intialized to some intial value to remove the warning.

Change-Id: I4041e9d3256c40acb8cdbebbc810275123601603

src/shared/csensor_event_dispatcher.cpp

index f9f90d5..f00332d 100755 (executable)
@@ -189,8 +189,8 @@ void csensor_event_dispatcher::dispatch_event(void)
 
 void csensor_event_dispatcher::send_sensor_events(void* events, int event_cnt, bool is_hub_event)
 {
-       sensor_event_t *sensor_events;
-       sensorhub_event_t *sensor_hub_events;
+       sensor_event_t *sensor_events = NULL;
+       sensorhub_event_t *sensor_hub_events = NULL;
        cclient_info_manager& client_info_manager = get_client_info_manager();
 
        const int RESERVED_CLIENT_CNT = 20;