summaryrefslogtreecommitdiffstats
path: root/curs_lib.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2019-09-22 14:54:14 -0700
committerKevin McCarthy <kevin@8t8.us>2019-09-22 14:56:34 -0700
commit1ae6e10f6f80d0a1d0be950e7a8cd91b1dd7a15d (patch)
treef9c207ab555451605ff68a68f05da957418a908a /curs_lib.c
parentb4cd985275ecc60135a711c6543c17c70f0a2b58 (diff)
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.
Diffstat (limited to 'curs_lib.c')
-rw-r--r--curs_lib.c2
1 files changed, 1 insertions, 1 deletions
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);