mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Fix #122
This commit is contained in:
parent
c5a841f507
commit
134ee92f43
1
nnn.c
1
nnn.c
|
@ -2160,7 +2160,6 @@ static int dentfill(char *path, struct entry **dents,
|
||||||
total_dents += ENTRY_INCR;
|
total_dents += ENTRY_INCR;
|
||||||
*dents = xrealloc(*dents, total_dents * sizeof(**dents));
|
*dents = xrealloc(*dents, total_dents * sizeof(**dents));
|
||||||
if (*dents == NULL) {
|
if (*dents == NULL) {
|
||||||
if (pnamebuf)
|
|
||||||
free(pnamebuf);
|
free(pnamebuf);
|
||||||
errexit();
|
errexit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue