- strfcpy (path, pattern.data, sizeof (path));
- _mutt_expand_path (path, sizeof (path), 1);
- mem_free (&pattern.data);
- memset (&pattern, 0, sizeof (pattern));
- pattern.data = str_dup (path);
+ _mutt_expand_path (path, sizeof (path), pattern.data, 1);
+ p_delete(&pattern.data);
+ p_clear(&pattern, 1);
+ pattern.data = m_strdup(path);