aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-11 16:12:47 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-11 16:12:47 +0100
commitff0a0b62f3d3cfeeb9a81cc53deb4cde941b2839 (patch)
tree236858df1b1ea6c3e9a6977bcb83ff05c97fb7f4
parent28fc31d78da989e3ed0ac74d2edc0ba78d1f1541 (diff)
downloadffmpeg-ff0a0b62f3d3cfeeb9a81cc53deb4cde941b2839.tar.gz
compat/avisynth/avxsynth_c: Clear all unused fields in returned structs
Fixes: CID1257658 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--compat/avisynth/avxsynth_c.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/compat/avisynth/avxsynth_c.h b/compat/avisynth/avxsynth_c.h
index b20f46081e..991f4be1ab 100644
--- a/compat/avisynth/avxsynth_c.h
+++ b/compat/avisynth/avxsynth_c.h
@@ -513,21 +513,21 @@ AVSC_INLINE AVS_Value avs_array_elt(AVS_Value v, int index)
// only use these functions on am AVS_Value that does not already have
// an active value. Remember, treat AVS_Value as a fat pointer.
AVSC_INLINE AVS_Value avs_new_value_bool(int v0)
- { AVS_Value v; v.type = 'b'; v.d.boolean = v0 == 0 ? 0 : 1; return v; }
+ { AVS_Value v = {0}; v.type = 'b'; v.d.boolean = v0 == 0 ? 0 : 1; return v; }
AVSC_INLINE AVS_Value avs_new_value_int(int v0)
- { AVS_Value v; v.type = 'i'; v.d.integer = v0; return v; }
+ { AVS_Value v = {0}; v.type = 'i'; v.d.integer = v0; return v; }
AVSC_INLINE AVS_Value avs_new_value_string(const char * v0)
- { AVS_Value v; v.type = 's'; v.d.string = v0; return v; }
+ { AVS_Value v = {0}; v.type = 's'; v.d.string = v0; return v; }
AVSC_INLINE AVS_Value avs_new_value_float(float v0)
- { AVS_Value v; v.type = 'f'; v.d.floating_pt = v0; return v;}
+ { AVS_Value v = {0}; v.type = 'f'; v.d.floating_pt = v0; return v;}
AVSC_INLINE AVS_Value avs_new_value_error(const char * v0)
- { AVS_Value v; v.type = 'e'; v.d.string = v0; return v; }
+ { AVS_Value v = {0}; v.type = 'e'; v.d.string = v0; return v; }
#ifndef AVSC_NO_DECLSPEC
AVSC_INLINE AVS_Value avs_new_value_clip(AVS_Clip * v0)
- { AVS_Value v; avs_set_to_clip(&v, v0); return v; }
+ { AVS_Value v = {0}; avs_set_to_clip(&v, v0); return v; }
#endif
AVSC_INLINE AVS_Value avs_new_value_array(AVS_Value * v0, int size)
- { AVS_Value v; v.type = 'a'; v.d.array = v0; v.array_size = size; return v; }
+ { AVS_Value v = {0}; v.type = 'a'; v.d.array = v0; v.array_size = size; return v; }
/////////////////////////////////////////////////////////////////////
//