summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-09-19 06:47:47 +0000
committerJim Meyering <jim@meyering.net>2005-09-19 06:47:47 +0000
commitf721f106824545288e71c549d36814a4adcc92b2 (patch)
treea8fdd8fd5fdf6511bf3c789ef7b618f8235a437d /src
parent864947764dbf22cc8cc9302cf3615333241ccddc (diff)
downloadcoreutils-f721f106824545288e71c549d36814a4adcc92b2.tar.xz
(remove_cwd_entries): Syntactic tweak: move an
assignment out of an if-expression.
Diffstat (limited to 'src')
-rw-r--r--src/remove.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/remove.c b/src/remove.c
index aad4856b6..58042286a 100644
--- a/src/remove.c
+++ b/src/remove.c
@@ -867,7 +867,8 @@ remove_cwd_entries (Dirstack_state *ds, char **subdir, struct stat *subdir_sb,
/* Set errno to zero so we can distinguish between a readdir failure
and when readdir simply finds that there are no more entries. */
errno = 0;
- if ((dp = readdir_ignoring_dot_and_dotdot (dirp)) == NULL)
+ dp = readdir_ignoring_dot_and_dotdot (dirp);
+ if (dp == NULL)
{
if (errno)
{