From 124148cc4d0949d5122016fb6e5e8c05d49564cc Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Sat, 3 Nov 2007 11:12:19 +0100 Subject: [PATCH] Check Maildir for not being NULL when expanding '='-paths. Closes #2977. --- ChangeLog | 8 ++++++++ muttlib.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1eba13094..fc86e9b92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-11-02 16:55 -0700 Pawel Dziekonski (cc5de08f4612) + + * po/pl.po: Updated Polish translation. + +2007-11-01 20:36 -0700 Petr Pisar (0b4bd0452b5a) + + * ChangeLog, po/cs.po: Updated Czech translation. + 2007-11-01 15:45 -0700 Brendan Cully (5123cded9988) * configure.ac: Use $datarootdir as default prefix for documentation diff --git a/muttlib.c b/muttlib.c index 5e7a6791d..46e074819 100644 --- a/muttlib.c +++ b/muttlib.c @@ -397,7 +397,7 @@ char *_mutt_expand_path (char *s, size_t slen, int rx) strfcpy (p, NONULL (Maildir), sizeof (p)); else #endif - if (Maildir[strlen (Maildir) - 1] == '/') + if (Maildir && *Maildir && Maildir[strlen (Maildir) - 1] == '/') strfcpy (p, NONULL (Maildir), sizeof (p)); else snprintf (p, sizeof (p), "%s/", NONULL (Maildir)); -- 2.40.0