From 8503b2be4e94c8d0ca8718c3cc1b1fd1ff8789ad Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Wed, 6 Nov 2002 03:19:30 +0000 Subject: [w3m-dev 03375] NULL check of CurrentTab * display.c (disp_message_nsec): check CurrentTab * file.c (doExternal): check CurrentTab * image.c (loadImage): check CurrentTab From: Hironori SAKAMOTO --- image.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'image.c') diff --git a/image.c b/image.c index dd6e8f3..71a7a47 100644 --- a/image.c +++ b/image.c @@ -1,4 +1,4 @@ -/* $Id: image.c,v 1.12 2002/11/05 17:10:05 ukai Exp $ */ +/* $Id: image.c,v 1.13 2002/11/06 03:19:31 ukai Exp $ */ #include "fm.h" #include @@ -431,7 +431,7 @@ loadImage(int flag) if (!stat(cache->file, &st)) { cache->loaded = IMG_FLAG_LOADED; if (getImageSize(cache)) { - if (flag == IMG_FLAG_NEXT && Currentbuf) + if (flag == IMG_FLAG_NEXT && CurrentTab && Currentbuf) Currentbuf->need_reshape = TRUE; } draw = TRUE; @@ -443,7 +443,7 @@ loadImage(int flag) } if (flag == IMG_FLAG_NEXT && draw) drawImage(); - if (Currentbuf) + if (CurrentTab && Currentbuf) showImageProgress(Currentbuf); } @@ -466,7 +466,7 @@ loadImage(int flag) } image_list = NULL; image_file = NULL; - if (Currentbuf) + if (CurrentTab && Currentbuf) displayBuffer(Currentbuf, B_NORMAL); return; } -- cgit v1.2.3