aboutsummaryrefslogtreecommitdiffstats
path: root/com32/rosh/rosh.c
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2010-10-02 00:16:54 -0400
committerGene Cumm <gene.cumm@gmail.com>2010-10-09 07:33:07 -0400
commitadac922714ec5835812fe8902d17eb0c5f0ff316 (patch)
tree9bf208ee311403b3395a73642571c7c657a41a30 /com32/rosh/rosh.c
parentfca730eca4bc6730c5e514b8148f43e6d02fc3b2 (diff)
downloadsyslinux-adac922714ec5835812fe8902d17eb0c5f0ff316.tar.gz
syslinux-adac922714ec5835812fe8902d17eb0c5f0ff316.tar.xz
syslinux-adac922714ec5835812fe8902d17eb0c5f0ff316.zip
rosh: compact previous commit
Diffstat (limited to 'com32/rosh/rosh.c')
-rw-r--r--com32/rosh/rosh.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/com32/rosh/rosh.c b/com32/rosh/rosh.c
index 8d4b501e..f5ed6cd3 100644
--- a/com32/rosh/rosh.c
+++ b/com32/rosh/rosh.c
@@ -778,8 +778,7 @@ void rosh_ls_arg(const char *filestr, const int *optarr)
if (status == 0) {
if (S_ISDIR(fdstat.st_mode)) {
ROSH_DEBUG("PATH '%s' is a directory\n", filestr);
- d = opendir(filestr);
- if (d) {
+ if (d = opendir(filestr)) {
rosh_ls_arg_dir(filestr, d, optarr);
} else {
rosh_error(errno, "ls", filestr);