Browse Source

no need to check for NULL before free

master
Hiltjo Posthuma lostd 10 years ago
parent
commit
81a0c57783
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      noice.c

+ 2
- 4
noice.c View File

@@ -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:


Loading…
Cancel
Save