]> granicus.if.org Git - mutt/commitdiff
Should fix #1115. BACKPORT!
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 18 Mar 2002 18:54:56 +0000 (18:54 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 18 Mar 2002 18:54:56 +0000 (18:54 +0000)
browser.c

index ee55bd33a5900a03eaa0b3c8a9c5caec2257e487..63f1fac9897dcf69db14d61a5206a9edd769fe1d 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -970,7 +970,7 @@ void _mutt_select_file (char *f, size_t flen, int flags, char ***files, int *num
        
       case OP_ENTER_MASK:
 
-       strfcpy (buf, Mask.pattern, sizeof (buf));
+       strfcpy (buf, NONULL(Mask.pattern), sizeof (buf));
        if (mutt_get_field (_("File Mask: "), buf, sizeof (buf), 0) == 0)
        {
          regex_t *rx = (regex_t *) safe_malloc (sizeof (regex_t));