X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=complete.c;h=f451e1a0fea0abd246fbebd6f234d2b426f305b8;hp=c909486b3be5ec53abdebabef2a674280c3acc66;hb=ef7b80006ebb47372d69c64e8b2b2f0764333d55;hpb=a8477ebaa09990b3688164cbe5cf661c4189541d diff --git a/complete.c b/complete.c index c909486..f451e1a 100644 --- a/complete.c +++ b/complete.c @@ -103,12 +103,8 @@ int mutt_complete (char *s, size_t slen) #ifdef USE_IMAP /* we can use '/' as a delimiter, imap_complete rewrites it */ if (*s == '=' || *s == '+' || *s == '!') { - if (*s == '!') - p = NONULL (Spoolfile); - else - p = NONULL (Maildir); - - mutt_concat_path (imap_path, p, s + 1, sizeof (imap_path)); + const char *q = NONULL(*s == '!' ? Spoolfile : Maildir); + mutt_concat_path (imap_path, q, s + 1, sizeof (imap_path)); } else strfcpy (imap_path, s, sizeof (imap_path));