]> granicus.if.org Git - mutt/commitdiff
Remove nonull check from _mutt_enter_fname()
authorKevin McCarthy <kevin@8t8.us>
Sun, 22 Sep 2019 21:54:14 +0000 (14:54 -0700)
committerKevin McCarthy <kevin@8t8.us>
Sun, 22 Sep 2019 21:56:34 +0000 (14:56 -0700)
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

index 35ee31afff9aa6e90111652e94fac4fbf7839bdf..e0c442045e0550a3a320012b441a34dcf21de22a 100644 (file)
@@ -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);