summaryrefslogtreecommitdiff
path: root/gnuradio-core/src
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-core/src')
-rw-r--r--gnuradio-core/src/lib/general/gr_math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/general/gr_math.h b/gnuradio-core/src/lib/general/gr_math.h
index f1bd208b8..9dd9680e3 100644
--- a/gnuradio-core/src/lib/general/gr_math.h
+++ b/gnuradio-core/src/lib/general/gr_math.h
@@ -82,7 +82,7 @@ static inline float gr_branchless_clip(float x, float clip)
static inline float gr_clip(float x, float clip)
{
- float y;
+ float y = x;
if(x > clip)
y = clip;
else if(x < -clip)