From 3743cdef5b76b8b03f952c31a8a1e723ceb894ba Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 6 Mar 2002 19:58:19 +0000 Subject: [PATCH] warning: 'current_diff' might be used uninitialized in this function Original commit message from CVS: warning: 'current_diff' might be used uninitialized in this function --- libs/gst/control/dparam_smooth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/gst/control/dparam_smooth.c b/libs/gst/control/dparam_smooth.c index b42a13458d..64e053dd69 100644 --- a/libs/gst/control/dparam_smooth.c +++ b/libs/gst/control/dparam_smooth.c @@ -231,7 +231,8 @@ gst_dpsmooth_do_update_float (GstDParam *dparam, gint64 timestamp, GValue *value { gint64 time_diff; gfloat time_ratio; - gfloat current, target, max_change, current_diff, final_val; + gfloat current, target, max_change, final_val; + gfloat current_diff = 0; GstDParamSmooth *dpsmooth = GST_DPSMOOTH(dparam);