From 1ae6e10f6f80d0a1d0be950e7a8cd91b1dd7a15d Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Sun, 22 Sep 2019 14:54:14 -0700 Subject: [PATCH] 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. --- curs_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.1