summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchanywa <cbible.kim@samsung.com>2016-07-15 17:48:48 +0900
committerchanywa <cbible.kim@samsung.com>2016-07-15 17:48:48 +0900
commitd9eccda1618626a95fbaf90136b417b537a3967c (patch)
tree0411caf5fb7e10faa528daf00466d344c8fb2538
parent1237eaaf7fdfe7d23c5914bc0e0b3d49164769ef (diff)
downloadgeofence-server-d9eccda1618626a95fbaf90136b417b537a3967c.tar.gz
geofence-server-d9eccda1618626a95fbaf90136b417b537a3967c.tar.bz2
geofence-server-d9eccda1618626a95fbaf90136b417b537a3967c.zip
Change-Id: Ieb3847b2b1e8deb696dbafa1e830c904cd66ca4b
-rw-r--r--geofence-server/src/geofence_server.c2
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");*/