diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-25 16:14:45 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-25 16:14:45 +0000 |
commit | d31151945a1f781e5eb674f0b2ad995040ed5c83 (patch) | |
tree | bd665cd0f59430c0081ceec3381e2eddad04e23d /w3mimg/x11/x11_w3mimg.c | |
parent | [w3m-dev 03601] Re: meta refresh (diff) | |
download | w3m-d31151945a1f781e5eb674f0b2ad995040ed5c83.tar.gz w3m-d31151945a1f781e5eb674f0b2ad995040ed5c83.zip |
[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 <hito@crl.go.jp>
Diffstat (limited to '')
-rw-r--r-- | w3mimg/x11/x11_w3mimg.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/w3mimg/x11/x11_w3mimg.c b/w3mimg/x11/x11_w3mimg.c index 3b89f92..1f46189 100644 --- a/w3mimg/x11/x11_w3mimg.c +++ b/w3mimg/x11/x11_w3mimg.c @@ -1,4 +1,4 @@ -/* $Id: x11_w3mimg.c,v 1.10 2002/10/05 16:43:10 ukai Exp $ */ +/* $Id: x11_w3mimg.c,v 1.11 2002/12/25 16:14:45 ukai Exp $ */ #include <stdio.h> #include <stdlib.h> #include <ctype.h> @@ -355,6 +355,10 @@ x11_show_image(w3mimg_op * self, W3MImage * img, int sx, int sy, int sw, #endif if (self == NULL) return 0; + + if (img->pixmap == NULL) + return 0; + xi = (struct x11_info *)self->priv; if (xi == NULL) return 0; |