From: dooglus Date: Thu, 27 Dec 2007 06:19:02 +0000 (+0000) Subject: Stop g++ warning that "'prev' may be used uninitialized in this function" (it wouldn... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a89e7e36cde5821f2444b2dc1357b879ab41ba2a;p=synfig.git Stop g++ warning that "'prev' may be used uninitialized in this function" (it wouldn't have been anyway). git-svn-id: http://svn.voria.com/code@1235 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/loadcanvas.cpp b/synfig-core/trunk/src/synfig/loadcanvas.cpp index c0e3f6f..f0b68b4 100644 --- a/synfig-core/trunk/src/synfig/loadcanvas.cpp +++ b/synfig-core/trunk/src/synfig/loadcanvas.cpp @@ -1068,7 +1068,7 @@ CanvasParser::parse_animated(xmlpp::Element *element,Canvas::Handle canvas) if (parent->get_version() == "0.1") { bool first = true; - Real angle, prev; + Real angle, prev = 0; WaypointList &wl = value_node->waypoint_list(); for (WaypointList::iterator iter = wl.begin(); iter != wl.end(); iter++) {