Initialise a couple of values before using them.
authorpabs3 <pabs3@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 6 Nov 2008 05:25:34 +0000 (05:25 +0000)
committerpabs3 <pabs3@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 6 Nov 2008 05:25:34 +0000 (05:25 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2158 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index c639775..9b8ae06 100644 (file)
@@ -184,7 +184,7 @@ Time::get_string(float fps, Time::Format format)const
        if(ceil(time.value_)-time.value_<epsilon_())
                time.value_=ceil(time.value_);
 
-       int hour,minute;
+       int hour = 0, minute = 0;
        if(!(format<=FORMAT_FRAMES))
        {
                hour=time/3600;time-=hour*3600;