Procházet zdrojové kódy

Simplify check

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

+ 1
- 3
src/nnn.c Zobrazit soubor

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


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


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


||||||
x
 
000:0
Načítá se…
Zrušit
Uložit