aboutsummaryrefslogtreecommitdiffstats
path: root/rc.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-06-01 17:09:04 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-06-01 17:09:04 +0000
commit900682ebd541cad4fceb918c0ec37c3b1f98c78b (patch)
tree494cc6e76a948f9da7ed9dfc1d22e2c3b1b1a11f /rc.c
parent[w3m-dev 03200] Re: New configuration option ``keymap_file'' and new command ... (diff)
downloadw3m-900682ebd541cad4fceb918c0ec37c3b1f98c78b.tar.gz
w3m-900682ebd541cad4fceb918c0ec37c3b1f98c78b.zip
[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 <scribble@pobox.com>
Diffstat (limited to '')
-rw-r--r--rc.c7
1 files changed, 1 insertions, 6 deletions
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) {