]> 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:19 +0000 (17:28 -0500)
src/switch_core_video.c

index 7c010b7c0bb4f79c7e2fda929fb19574dc2d8b12..100ed0f4ba7e357bd6e09899603de7e3745b43cd 100644 (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) {
                                src = *srcP;
+                               tmp = NULL;
                                switch_img_scale(src, &tmp, width, height);
                                switch_img_free(&src);
                                *srcP = tmp;