mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
no need to check for NULL before free
This commit is contained in:
parent
d444bf1cb6
commit
81a0c57783
6
noice.c
6
noice.c
|
@ -545,10 +545,8 @@ begin:
|
||||||
|
|
||||||
/* Find cur from history */
|
/* Find cur from history */
|
||||||
cur = dentfind(dents, n, path, oldpath);
|
cur = dentfind(dents, n, path, oldpath);
|
||||||
if (oldpath != NULL) {
|
free(oldpath);
|
||||||
free(oldpath);
|
oldpath = NULL;
|
||||||
oldpath = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
redraw:
|
redraw:
|
||||||
|
|
Loading…
Reference in a new issue