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

View file

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