From aa74d020256e90385651d3cab9b5969e2a181b52 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Fri, 23 Nov 2001 22:41:42 +0000 Subject: [w3m-dev 02530] segfault for bad cookie from local From: Fumitoshi UKAI --- file.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index b1b72a6..72b919b 100644 --- a/file.c +++ b/file.c @@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.12 2001/11/23 21:22:02 ukai Exp $ */ +/* $Id: file.c,v 1.13 2001/11/23 22:41:42 ukai Exp $ */ #include "fm.h" #include #include "myctype.h" @@ -652,7 +652,8 @@ readHeader(URLFile * uf, if (fmInitialized && (err & COO_OVERRIDE_OK) && accept_bad_cookie == PERHAPS) { Str msg = Sprintf("Accept bad cookie from %s for %s? (y or n) ", - pu->host, domain->ptr); + pu->host, + domain && domain->ptr ? domain->ptr : ""); if (msg->length > COLS - 4) Strshrink(msg, msg->length - (COLS - 4)); term_raw(); -- cgit v1.2.3