Browse Source

Only free history path if it is valid

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

+ 4
- 2
noice.c View File

@@ -604,8 +604,10 @@ begin:


/* Find cur from history */ /* Find cur from history */
cur = dentfind(dents, n, path, hpath); cur = dentfind(dents, n, path, hpath);
free(hpath);
hpath = NULL;
if (hpath != NULL) {
free(hpath);
hpath = NULL;
}


for (;;) { for (;;) {
int nlines; int nlines;


Loading…
Cancel
Save