From: Anthony Minessale Date: Thu, 20 Jul 2017 22:28:19 +0000 (-0500) Subject: FS-10526: [freeswitch-core] Uninitialized variable in switch_img_fit when using SWITC... X-Git-Tag: v1.8.0~338 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13033b49b3559d87a20ba129b254efafdd622964;p=thirdparty%2Ffreeswitch.git FS-10526: [freeswitch-core] Uninitialized variable in switch_img_fit when using SWITCH_FIT_SIZE_AND_SCALE #resolve --- diff --git a/src/switch_core_video.c b/src/switch_core_video.c index 7c010b7c0b..100ed0f4ba 100644 --- a/src/switch_core_video.c +++ b/src/switch_core_video.c @@ -2993,6 +2993,7 @@ SWITCH_DECLARE(switch_status_t) switch_img_fit(switch_image_t **srcP, int width, if (fit == SWITCH_FIT_SIZE_AND_SCALE) { src = *srcP; + tmp = NULL; switch_img_scale(src, &tmp, width, height); switch_img_free(&src); *srcP = tmp;