Simplify check

This commit is contained in:
Arun Prakash Jana 2019-02-10 13:25:54 +05:30
parent fc7a21f6e1
commit 22825c0f37
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 4 deletions

View File

@ -3867,10 +3867,7 @@ nochange:
}
if (S_ISREG(sb.st_mode)) {
if (ndents)
tmp = dents[cur].name;
else
tmp = NULL;
tmp = ndents ? dents[cur].name : NULL;
spawn(shell, scriptpath, tmp, path, F_NORMAL | F_SIGINT);
}
break;