From: robertlipe Date: Sat, 30 Mar 2013 03:42:57 +0000 (+0000) Subject: Make valgrind happier by initializing all the things in geocahe data ctor. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~11^2~590 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=006d4e681475cbfc4bbba0ba14e58d0b88e6485a;p=gpsbabel.git Make valgrind happier by initializing all the things in geocahe data ctor. --- diff --git a/gpsbabel/defs.h b/gpsbabel/defs.h index 0d49c9dfd..5a27eb0ed 100644 --- a/gpsbabel/defs.h +++ b/gpsbabel/defs.h @@ -282,6 +282,8 @@ class geocache_data { is_available(status_unknown), is_memberonly(status_unknown), has_customcoords(status_unknown), + exported(0), + last_found(0), placer(NULL), placer_id(0), hint(NULL), diff --git a/gpsbabel/waypt.cc b/gpsbabel/waypt.cc index 52f73cc80..7a04e5f7d 100644 --- a/gpsbabel/waypt.cc +++ b/gpsbabel/waypt.cc @@ -90,8 +90,10 @@ waypt_dupe(const waypoint *wpt) tmp->gc_data->has_customcoords = wpt->gc_data->has_customcoords; tmp->gc_data->exported = wpt->gc_data->exported; tmp->gc_data->last_found = wpt->gc_data->last_found; + tmp->gc_data->placer_id = wpt->gc_data->placer_id; tmp->gc_data->desc_short.is_html = wpt->gc_data->desc_short.is_html; tmp->gc_data->desc_long.is_html = wpt->gc_data->desc_long.is_html; + tmp->gc_data->favorite_points = wpt->gc_data->favorite_points; // memcpy(gc_data, wpt->gc_data, sizeof(*gc_data)); if (wpt->gc_data->desc_short.utfstring) {