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
3
nnn.c
3
nnn.c
|
@ -2160,8 +2160,7 @@ 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();
|
||||||
}
|
}
|
||||||
DPRINTF_P(*dents);
|
DPRINTF_P(*dents);
|
||||||
|
|
Loading…
Reference in a new issue