nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 14b9a42f5bea9a4e6e38f84d83cae8883d794d3e
parent 3227ba46d9b93ba4006eb0bc906b6067e4f5ccf2
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sat, 14 Jul 2018 21:02:32 +0200

tweaks: move a call to where it will be executed  [coverity scan]

Diffstat:
Msrc/text.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/text.c b/src/text.c @@ -3238,6 +3238,8 @@ void do_linter(void) } } + free(dontwantfile); + if (restlint == NULL) { statusbar(_("No more errors in unopened files, cancelling")); napms(2400); @@ -3246,8 +3248,6 @@ void do_linter(void) curlint = restlint; continue; } - - free(dontwantfile); #ifdef ENABLE_MULTIBUFFER } }