emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 3db3d5a: Fix compiler warning in image.c


From: Po Lu
Subject: master 3db3d5a: Fix compiler warning in image.c
Date: Mon, 22 Nov 2021 06:14:41 -0500 (EST)

branch: master
commit 3db3d5a3981dad1ac42a5729c285b9adaba10f05
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix compiler warning in image.c
    
    * src/image.c (webp_load): Initialize `mask_img' to NULL.
---
 src/image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/image.c b/src/image.c
index 734ccda..f2597f5 100644
--- a/src/image.c
+++ b/src/image.c
@@ -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;
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]