aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathieu Trudel-Lapierre <mathieu-tl@ubuntu.com>2013-02-06 10:10:11 -0500
committerMathieu Trudel-Lapierre <mathieu-tl@ubuntu.com>2013-02-06 10:10:11 -0500
commitd9aa6f031dab7dbee5b914ef2d90f6205711c835 (patch)
treeaa10718bfa8dc52d4bb9e60c162500303f28a414 /src
parentfe1d7264661c4112575116bd7ef5c6aaba29575a (diff)
downloadayatana-ido-d9aa6f031dab7dbee5b914ef2d90f6205711c835.tar.gz
ayatana-ido-d9aa6f031dab7dbee5b914ef2d90f6205711c835.tar.bz2
ayatana-ido-d9aa6f031dab7dbee5b914ef2d90f6205711c835.zip
Shut up coverity about CID:12650.
Diffstat (limited to 'src')
-rw-r--r--src/idotimeline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/idotimeline.c b/src/idotimeline.c
index 24a6935..ba838ba 100644
--- a/src/idotimeline.c
+++ b/src/idotimeline.c
@@ -549,7 +549,8 @@ ido_timeline_set_fps (IdoTimeline *timeline,
priv = IDO_TIMELINE_GET_PRIV (timeline);
- priv->fps = fps;
+ /* Coverity CID: 12650/12651: guard against division by 0. */
+ priv->fps = fps > 0 ? fps : priv->fps;
if (ido_timeline_is_running (timeline))
{