mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-18 15:28:33 +00:00
FS-10526: [freeswitch-core] Uninitialized variable in switch_img_fit when using SWITCH_FIT_SIZE_AND_SCALE #resolve
This commit is contained in:
1 parent
0013b00b64
commit
13033b49b3
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user