]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10526: [freeswitch-core] Uninitialized variable in switch_img_fit when using SWITC...
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 20 Jul 2017 22:28:19 +0000 (17:28 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 20 Jul 2017 22:28:56 +0000 (17:28 -0500)
src/switch_core_video.c

index 4c6aed9e4d652c916b3553d3ab9bcdb955b6518b..f208a172c33c6e188540e1f71dc66c80f773d7bf 100644 (file)
@@ -2381,6 +2381,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;