mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
no need to check for NULL before free
This commit is contained in:
parent
d444bf1cb6
commit
81a0c57783
1 changed files with 2 additions and 4 deletions
2
noice.c
2
noice.c
|
@ -545,10 +545,8 @@ begin:
|
|||
|
||||
/* Find cur from history */
|
||||
cur = dentfind(dents, n, path, oldpath);
|
||||
if (oldpath != NULL) {
|
||||
free(oldpath);
|
||||
oldpath = NULL;
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
redraw:
|
||||
|
|
Loading…
Add table
Reference in a new issue