aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules/readconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/modules/readconfig.c')
-rw-r--r--com32/modules/readconfig.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/com32/modules/readconfig.c b/com32/modules/readconfig.c
index 0a779568..24057b1b 100644
--- a/com32/modules/readconfig.c
+++ b/com32/modules/readconfig.c
@@ -420,15 +420,25 @@ void parse_config(const char *filename)
if ( (ep = looking_at(p, cptr->name)) ) {
p = skipspace(ep);
if (*p) {
- free(cptr->ansi);
- cptr->ansi = dup_word(&p);
+ if (!strcmp(p, "*")) {
+ p++;
+ } else {
+ free((void *)cptr->ansi);
+ cptr->ansi = dup_word(&p);
+ }
- p = skipspace(ep);
+ p = skipspace(p);
if (*p) {
- cptr->argb_fg = parse_argb(&p);
- p = skipspace(ep);
+ if (!strcmp(p, "*")) {
+ p++;
+ } else {
+ cptr->argb_fg = parse_argb(&p);
+ }
+
+ p = skipspace(p);
if (*p) {
- cptr->argb_bg = parse_argb(&p);
+ if (strcmp(p, "*"))
+ cptr->argb_bg = parse_argb(&p);
}
}
}