From d31151945a1f781e5eb674f0b2ad995040ed5c83 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Wed, 25 Dec 2002 16:14:45 +0000 Subject: [w3m-dev 03602] Re: w3mimgdisplay core dump * w3mimgdisplay.c (DrawImage): check load_image, imageBuf[n].pixmap * w3mimg/fb/fb_w3mimg.c (w3mfb_show_image): check img->pixmap * w3mimg/x11/x11_w3mimg.c (x11_show_image): check img->pixmap From: Hiroyuki Ito --- w3mimg/fb/fb_w3mimg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'w3mimg/fb/fb_w3mimg.c') diff --git a/w3mimg/fb/fb_w3mimg.c b/w3mimg/fb/fb_w3mimg.c index 6734463..99d473c 100644 --- a/w3mimg/fb/fb_w3mimg.c +++ b/w3mimg/fb/fb_w3mimg.c @@ -1,4 +1,4 @@ -/* $Id: fb_w3mimg.c,v 1.6 2002/11/06 03:50:49 ukai Exp $ */ +/* $Id: fb_w3mimg.c,v 1.7 2002/12/25 16:14:45 ukai Exp $ */ #include #include #include @@ -87,6 +87,9 @@ w3mfb_show_image(w3mimg_op * self, W3MImage * img, int sx, int sy, if (self == NULL) return 0; + if (img->pixmap == NULL) + return 0; + frame = (FB_IMAGE **) img->pixmap; i = frame[0]->id; fb_image_draw(frame[i], -- cgit v1.2.3