소스 검색

Revert "Simplify check"

This reverts commit 37e5e6189a.
master
Arun Prakash Jana 4 년 전
부모
커밋
1faf9f2480
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. +3
    -1
      src/nnn.c

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

@@ -4321,11 +4321,13 @@ static void readpipe(int fd, char **path, char **lastname, char **lastdir)
char ctx, *nextpath = NULL;
ssize_t len = read_nointr(fd, g_buf, 1);

if (len != 1 || g_buf[0] < '0')
if (len != 1)
return;

if (g_buf[0] == '+')
ctx = (char)(get_free_ctx() + 1);
else if (g_buf[0] < '0')
return;
else {
ctx = g_buf[0] - '0';
if (ctx > CTX_MAX)


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