diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-29 09:34:14 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-29 09:34:14 +0000 |
commit | c33cdfcd56cf8bc964bb0e82684fedc7f532d259 (patch) | |
tree | 4696c5ee6f959dfbe0b7da9bf58e4c23c27cd584 /rc.c | |
parent | [w3m-dev 02579] Use environment variables CC, CFLAGS, LDFLAGS (diff) | |
download | w3m-c33cdfcd56cf8bc964bb0e82684fedc7f532d259.tar.gz w3m-c33cdfcd56cf8bc964bb0e82684fedc7f532d259.zip |
[w3m-dev 02584] code cleanup again
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to 'rc.c')
-rw-r--r-- | rc.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: rc.c,v 1.15 2001/11/27 18:29:24 ukai Exp $ */ +/* $Id: rc.c,v 1.16 2001/11/29 09:34:15 ukai Exp $ */ /* * Initialization file etc. */ @@ -34,6 +34,7 @@ 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 #define P_SHORT 1 @@ -702,7 +703,7 @@ void show_params(FILE * fp) { int i, j, l; - char *t; + char *t = NULL; char *cmt; fputs("\nconfiguration parameters\n", fp); @@ -1153,7 +1154,7 @@ sync_with_option(void) } void -init_rc(char *config_file) +init_rc(char *config_filename) { struct stat st; FILE *f; @@ -1200,6 +1201,7 @@ init_rc(char *config_file) interpret_rc(f); fclose(f); } + config_file = config_filename; if (config_file == NULL) config_file = rcFile(CONFIG_FILE); if ((f = fopen(config_file, "rt")) != NULL) { @@ -1248,7 +1250,7 @@ to_str(struct param_ptr *p) Buffer * load_option_panel(void) { - Str src = Sprintf(optionpanel_src1, version, CMT_HELPER); + Str src = Sprintf(optionpanel_src1, w3m_version, CMT_HELPER); struct param_ptr *p; struct sel_c *s; int x, i; |