From 900682ebd541cad4fceb918c0ec37c3b1f98c78b Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Sat, 1 Jun 2002 17:09:04 +0000 Subject: [w3m-dev-en 00748] PATCH: Reinitialize w3m while running * funcname.tab (INIT_MAILCAP): deleted (REINIT): added * main.c (config_filename): added (reinit): added * proto.h (reinit): added * rc.c (rc_initialized): deleted * w3mhelperpanel.c (editMailcap): use REINIT MAILCAP From: Tushar Samant --- rc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'rc.c') diff --git a/rc.c b/rc.c index 112f53e..a4b18e7 100644 --- a/rc.c +++ b/rc.c @@ -1,4 +1,4 @@ -/* $Id: rc.c,v 1.44 2002/06/01 16:50:16 ukai Exp $ */ +/* $Id: rc.c,v 1.45 2002/06/01 17:09:05 ukai Exp $ */ /* * Initialization file etc. */ @@ -33,7 +33,6 @@ struct rc_search_table { static struct rc_search_table *RC_search_table; static int RC_table_size; -static int rc_initialized = 0; static char *config_file = NULL; #define P_INT 0 @@ -1259,10 +1258,6 @@ init_rc(char *config_filename) && ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0')) tmpdir = "/tmp"; - if (rc_initialized) - return; - rc_initialized = 1; - if (stat(rc_dir, &st) < 0) { if (errno == ENOENT) { /* no directory */ if (do_mkdir(rc_dir, 0700) < 0) { -- cgit v1.2.3