From: Kevin McCarthy Date: Sun, 22 Sep 2019 21:54:14 +0000 (-0700) Subject: Remove nonull check from _mutt_enter_fname() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ae6e10f6f80d0a1d0be950e7a8cd91b1dd7a15d;p=mutt Remove nonull check from _mutt_enter_fname() It was a mistake to add the check when converting to use buffers in commit 70ef4e9e. The buf must be non-null in the original version, and in this version we are copying results back to it afterwards. --- diff --git a/curs_lib.c b/curs_lib.c index 35ee31af..e0c44204 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -993,7 +993,7 @@ int _mutt_enter_fname (const char *prompt, char *buf, size_t blen, int buffy, fname = mutt_buffer_pool_get (); - mutt_buffer_addstr (fname, NONULL (buf)); + mutt_buffer_addstr (fname, buf); rc = _mutt_buffer_enter_fname (prompt, fname, buffy, multiple, files, numfiles); strfcpy (buf, mutt_b2s (fname), blen);