From: Robert Lipe Date: Sun, 2 Jul 2017 23:18:32 +0000 (-0500) Subject: Fix valgrind's warning about an uninitialized variable that. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~115^2~1^2~237 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f1fa117a27c837081d88970661418eb01a90cbb9;p=gpsbabel.git Fix valgrind's warning about an uninitialized variable that. --- diff --git a/pcx.cc b/pcx.cc index 4c3c1bcdd..b8e12f862 100644 --- a/pcx.cc +++ b/pcx.cc @@ -161,7 +161,8 @@ static void data_read(void) { wpt_tmp->description = desc.trimmed(); wpt_tmp->icon_descr = gt_find_desc_from_icon_number(symnum, PCX); - double lat, lon; + double lat = 0; + double lon = 0; if (read_as_degrees || read_gpsu) { human_to_dec(tbuf, &lat, &lon, 1); human_to_dec(nbuf, &lat, &lon, 2);