fixed a SVACE issue 22/80222/1 accepted/tizen/common/20160715.175611 accepted/tizen/ivi/20160717.034925 accepted/tizen/mobile/20160717.034911 submit/tizen/20160715.085229
authorchanywa <cbible.kim@samsung.com>
Fri, 15 Jul 2016 08:48:48 +0000 (17:48 +0900)
committerchanywa <cbible.kim@samsung.com>
Fri, 15 Jul 2016 08:48:48 +0000 (17:48 +0900)
Change-Id: Ieb3847b2b1e8deb696dbafa1e830c904cd66ca4b

geofence-server/src/geofence_server.c

index 9b4d66d..9b33a97 100644 (file)
@@ -842,7 +842,7 @@ static void __geofence_wps_position_changed_cb(double latitude, double longitude
 
        /* Allocate memory for the location_info structure */
        if (geofence_server->wps_fix_info == NULL)
-               geofence_server->wps_fix_info = (location_fix_info_s *)g_malloc(sizeof(location_fix_info_s));
+               geofence_server->wps_fix_info = (location_fix_info_s *)g_malloc0(sizeof(location_fix_info_s));
         /*Remove the timeout callback that might be running when requesting for fix.*/
        if (geofence_server->wps_timeout_alarm_id != -1) {
                /*LOGI_GEOFENCE("Removing the timeout alarm from restart gps");*/