diff options
author | Kevin McCarthy <kevin@8t8.us> | 2019-09-22 14:54:14 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2019-09-22 14:56:34 -0700 |
commit | 1ae6e10f6f80d0a1d0be950e7a8cd91b1dd7a15d (patch) | |
tree | f9c207ab555451605ff68a68f05da957418a908a /curs_lib.c | |
parent | b4cd985275ecc60135a711c6543c17c70f0a2b58 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |