noice

small file browser
git clone git://git.2f30.org/noice
Log | Files | Refs | README | LICENSE

commit 81a0c57783c3d1dae93f0b13d7236146f094a5c2
parent d444bf1cb6b1ef1c0436dd4b9e8ce0c6ea7b4ee9
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed, 17 Dec 2014 11:54:57 +0000

no need to check for NULL before free

Diffstat:
Mnoice.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/noice.c b/noice.c @@ -545,10 +545,8 @@ begin: /* Find cur from history */ cur = dentfind(dents, n, path, oldpath); - if (oldpath != NULL) { - free(oldpath); - oldpath = NULL; - } + free(oldpath); + oldpath = NULL; for (;;) { redraw: