Stop g++ warning that "'prev' may be used uninitialized in this function" (it wouldn...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 27 Dec 2007 06:19:02 +0000 (06:19 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 27 Dec 2007 06:19:02 +0000 (06:19 +0000)
git-svn-id: http://svn.voria.com/code@1235 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/loadcanvas.cpp

index c0e3f6f..f0b68b4 100644 (file)
@@ -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++)
                        {