From: Arun Prakash Jana Date: Wed, 12 May 2021 14:17:56 +0000 (+0530) Subject: Remove redundant/unaccessed variable X-Git-Tag: v4.1~77 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=4a4628e2fc4478df9fbbf21f30e12c782bbd2c96;p=nnn.git Remove redundant/unaccessed variable --- diff --git a/src/nnn.c b/src/nnn.c index 5bc3829a..5d8a7373 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -4785,7 +4785,6 @@ static void readpipe(int fd, char **path, char **lastname, char **lastdir) static bool run_selected_plugin(char **path, const char *file, char *runfile, char **lastname, char **lastdir) { - int status; pid_t p; bool cmd_as_plugin = FALSE; uchar_t flags = 0; @@ -4855,7 +4854,7 @@ static bool run_selected_plugin(char **path, const char *file, char *runfile, ch close(rfd); /* wait for the child to finish. no zombies allowed */ - waitpid(p, &status, 0); + waitpid(p, &rfd, 0); refresh();