Procházet zdrojové kódy

Fix crash on a broken USB

master
Arun Prakash Jana před 5 roky
rodič
revize
0bc5d82d2f
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: A75979F35C080412
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. +3
    -3
      src/nnn.c

+ 3
- 3
src/nnn.c Zobrazit soubor

@@ -2845,8 +2845,8 @@ static int dentfill(char *path, struct entry **dents)
}

dp = readdir(dirp);
// if (!dp) /* We have opened the dir, at least . would be returned */
// goto exit;
if (!dp)
goto exit;

if (cfg.blkorder || dp->d_type == DT_UNKNOWN) {
/*
@@ -3007,7 +3007,7 @@ static int dentfill(char *path, struct entry **dents)
++n;
} while ((dp = readdir(dirp)));

//exit:
exit:
/* Should never be null */
if (closedir(dirp) == -1) {
dentfree();


Načítá se…
Zrušit
Uložit