FS-10526: [freeswitch-core] Uninitialized variable in switch_img_fit when using SWITCH_FIT_SIZE_AND_SCALE #resolve
This commit is contained in:
parent
0013b00b64
commit
13033b49b3
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue