]> granicus.if.org Git - mutt/commitdiff
Combine DT_STR and DT_PATH in mutt_set_default().
authorKevin McCarthy <kevin@8t8.us>
Fri, 21 Jun 2019 20:36:09 +0000 (13:36 -0700)
committerKevin McCarthy <kevin@8t8.us>
Fri, 21 Jun 2019 20:36:09 +0000 (13:36 -0700)
19 years ago, they briefly performed different things, but the
mutt_pretty_mailbox() has been commented out since then.

init.c

diff --git a/init.c b/init.c
index a4d754c078de981ec0e927aba60b5d7b1c6dc912..8356e6ede5bb18a90224e3f7ac109e022ee5338b 100644 (file)
--- 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))