summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDane Springmeyer <dane@mapbox.com>2014-05-29 13:09:10 -0700
committerDane Springmeyer <dane@mapbox.com>2014-05-29 13:09:10 -0700
commitda33bef634b9555fb93c5e02faffd29c516f7ec7 (patch)
tree5baa4968b287191f8a87154b33df38aa5e6d7735 /src
parent829f9d11977d95102fe2141f70fa75ed6faf3ccb (diff)
downloadqtlocation-mapboxgl-da33bef634b9555fb93c5e02faffd29c516f7ec7.tar.gz
initialize variables
Diffstat (limited to 'src')
-rw-r--r--src/style/properties.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/style/properties.cpp b/src/style/properties.cpp
index 0e48418300..b39f20c514 100644
--- a/src/style/properties.cpp
+++ b/src/style/properties.cpp
@@ -29,9 +29,11 @@ float functions::stops(float z, const std::vector<float>& stops) {
if (stops.size() % 2 != 0) return 0;
bool smaller = false;
- float smaller_z, smaller_val;
+ float smaller_z = 0.0;
+ float smaller_val = 0.0;
bool larger = false;
- float larger_z, larger_val;
+ float larger_z = 0.0;
+ float larger_val = 0.0;
for (uint32_t i = 0; i < stops.size(); i += 2) {
float stop_z = stops[i];