Fix compiler warning in image.c

* src/image.c (webp_load): Initialize `mask_img' to NULL.
This commit is contained in:
Po Lu 2021-11-22 11:13:03 +00:00
parent d1a2e78b8c
commit 3db3d5a398

View file

@ -9059,7 +9059,7 @@ webp_load (struct frame *f, struct image *img)
}
/* Create the x image and pixmap. */
Emacs_Pix_Container ximg, mask_img;
Emacs_Pix_Container ximg, mask_img = NULL;
if (!image_create_x_image_and_pixmap (f, img, width, height, 0, &ximg, false))
goto webp_error2;