summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2019-06-21 13:36:09 -0700
committerKevin McCarthy <kevin@8t8.us>2019-06-21 13:36:09 -0700
commit6c01b284e6ecd0dc701536ce1888b6c92bf61416 (patch)
treefcfde884a96c2b85a0319fbd29229cb4d56b1e7b /init.c
parent2f91d43e33d9ce46ee0d9492b2fb9caceafae88e (diff)
Combine DT_STR and DT_PATH in mutt_set_default().
19 years ago, they briefly performed different things, but the mutt_pretty_mailbox() has been commented out since then.
Diffstat (limited to 'init.c')
-rw-r--r--init.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/init.c b/init.c
index a4d754c0..8356e6ed 100644
--- a/init.c
+++ b/init.c
@@ -1716,16 +1716,9 @@ static void mutt_set_default (struct option_t *p)
switch (p->type & DT_MASK)
{
case DT_STR:
- if (!p->init && *((char **) p->data))
- p->init = (unsigned long) safe_strdup (* ((char **) p->data));
- break;
case DT_PATH:
if (!p->init && *((char **) p->data))
- {
- char *cp = safe_strdup (*((char **) p->data));
- /* mutt_pretty_mailbox (cp); */
- p->init = (unsigned long) cp;
- }
+ p->init = (unsigned long) safe_strdup (* ((char **) p->data));
break;
case DT_ADDR:
if (!p->init && *((ADDRESS **) p->data))