From: Rocco Rutte Date: Mon, 17 Sep 2007 07:47:58 +0000 (+0200) Subject: Use NONULL to ensure we can pretty-print empty paths for option queries X-Git-Tag: mutt-1-5-17-rel~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=352edf56692e243621fac1ea9e27d08bc7e9a029;p=mutt Use NONULL to ensure we can pretty-print empty paths for option queries --- diff --git a/init.c b/init.c index 0a327cb0..23e32c63 100644 --- a/init.c +++ b/init.c @@ -1855,7 +1855,7 @@ static int parse_set (BUFFER *tmp, BUFFER *s, unsigned long data, BUFFER *err) else if (DTYPE (MuttVars[idx].type) == DT_PATH) { _tmp[0] = '\0'; - strfcpy (_tmp, *((char **) MuttVars[idx].data), sizeof (_tmp)); + strfcpy (_tmp, NONULL(*((char **) MuttVars[idx].data)), sizeof (_tmp)); mutt_pretty_mailbox (_tmp); val = _tmp; }