From d9aa6f031dab7dbee5b914ef2d90f6205711c835 Mon Sep 17 00:00:00 2001 From: Mathieu Trudel-Lapierre Date: Wed, 6 Feb 2013 10:10:11 -0500 Subject: Shut up coverity about CID:12650. --- src/idotimeline.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/idotimeline.c') 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)) { -- cgit v1.2.3