diff options
author | chanywa <cbible.kim@samsung.com> | 2016-07-15 17:48:48 +0900 |
---|---|---|
committer | chanywa <cbible.kim@samsung.com> | 2016-07-15 17:48:48 +0900 |
commit | d9eccda1618626a95fbaf90136b417b537a3967c (patch) | |
tree | 0411caf5fb7e10faa528daf00466d344c8fb2538 | |
parent | 1237eaaf7fdfe7d23c5914bc0e0b3d49164769ef (diff) | |
download | geofence-server-d9eccda1618626a95fbaf90136b417b537a3967c.tar.gz geofence-server-d9eccda1618626a95fbaf90136b417b537a3967c.tar.bz2 geofence-server-d9eccda1618626a95fbaf90136b417b537a3967c.zip |
fixed a SVACE issuesubmit/tizen/20160715.085229accepted/tizen/mobile/20160717.034911accepted/tizen/ivi/20160717.034925accepted/tizen/common/20160715.175611
Change-Id: Ieb3847b2b1e8deb696dbafa1e830c904cd66ca4b
-rw-r--r-- | geofence-server/src/geofence_server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/geofence-server/src/geofence_server.c b/geofence-server/src/geofence_server.c index 9b4d66d..9b33a97 100644 --- a/geofence-server/src/geofence_server.c +++ b/geofence-server/src/geofence_server.c @@ -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");*/ |