FS-10526: [freeswitch-core] Uninitialized variable in switch_img_fit when using SWITCH_FIT_SIZE_AND_SCALE #resolve

This commit is contained in:
Anthony Minessale 2017-07-20 17:28:19 -05:00
parent 0013b00b64
commit 13033b49b3
1 changed files with 1 additions and 0 deletions

View File

@ -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) { if (fit == SWITCH_FIT_SIZE_AND_SCALE) {
src = *srcP; src = *srcP;
tmp = NULL;
switch_img_scale(src, &tmp, width, height); switch_img_scale(src, &tmp, width, height);
switch_img_free(&src); switch_img_free(&src);
*srcP = tmp; *srcP = tmp;