diff options
author | Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> | 2013-02-06 11:54:10 -0500 |
---|---|---|
committer | Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> | 2013-02-06 11:54:10 -0500 |
commit | f81bc0d3747f5ef86254a5597562ce1bb425eb97 (patch) | |
tree | dc1580c4a3f4bfc2483fcd4da5eccd49df736974 | |
parent | d9aa6f031dab7dbee5b914ef2d90f6205711c835 (diff) | |
download | ayatana-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.
-rw-r--r-- | src/idotimeline.c | 4 |
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) { |