From adac922714ec5835812fe8902d17eb0c5f0ff316 Mon Sep 17 00:00:00 2001 From: Gene Cumm Date: Sat, 2 Oct 2010 00:16:54 -0400 Subject: [PATCH] rosh: compact previous commit --- com32/rosh/rosh.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/com32/rosh/rosh.c b/com32/rosh/rosh.c index 8d4b501..f5ed6cd 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); -- 2.7.4