aboutsummaryrefslogtreecommitdiff
path: root/src/idotimeline.c
diff options
context:
space:
mode:
authorMathieu Trudel-Lapierre <mathieu-tl@ubuntu.com>2013-02-06 11:54:10 -0500
committerMathieu Trudel-Lapierre <mathieu-tl@ubuntu.com>2013-02-06 11:54:10 -0500
commitf81bc0d3747f5ef86254a5597562ce1bb425eb97 (patch)
treedc1580c4a3f4bfc2483fcd4da5eccd49df736974 /src/idotimeline.c
parentd9aa6f031dab7dbee5b914ef2d90f6205711c835 (diff)
downloadayatana-ido-f81bc0d3747f5ef86254a5597562ce1bb425eb97.tar.gz
ayatana-ido-f81bc0d3747f5ef86254a5597562ce1bb425eb97.tar.bz2
ayatana-ido-f81bc0d3747f5ef86254a5597562ce1bb425eb97.zip
Guard against CID:12651, division by zero of FPS value due to its use for timing timeline updates.
Diffstat (limited to 'src/idotimeline.c')
-rw-r--r--src/idotimeline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idotimeline.c b/src/idotimeline.c
index ba838ba..8eea4b5 100644
--- a/src/idotimeline.c
+++ b/src/idotimeline.c
@@ -409,8 +409,8 @@ ido_timeline_start (IdoTimeline *timeline)
else
priv->timer = g_timer_new ();
- /* sanity check */
- g_assert (priv->fps > 0);
+ /* sanity check; CID: 12651 */
+ priv->fps = priv->fps > 0 ? priv->fps : DEFAULT_FPS;
if (priv->screen)
{