diff options
author | Kevin McCarthy <kevin@8t8.us> | 2019-06-21 13:36:09 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2019-06-21 13:36:09 -0700 |
commit | 6c01b284e6ecd0dc701536ce1888b6c92bf61416 (patch) | |
tree | fcfde884a96c2b85a0319fbd29229cb4d56b1e7b /init.c | |
parent | 2f91d43e33d9ce46ee0d9492b2fb9caceafae88e (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.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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)) |