noice

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

commit d84c3b1079091298e7f92cf9fcf21416f3fe2c6d
parent 81239754064e6b5bfeeeb90d0043a3e48f13f65c
Author: lostd <lostd@2f30.org>
Date:   Wed, 22 Oct 2014 22:32:45 +0300

Only free history path if it is valid

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

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