소스 검색

Fix crash on a broken USB

master
Arun Prakash Jana 6 년 전
부모
커밋
0bc5d82d2f
No known key found for this signature in database GPG 키 ID: A75979F35C080412
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +3
    -3
      src/nnn.c

+ 3
- 3
src/nnn.c 파일 보기

@@ -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();


불러오는 중...
취소
저장