From f721f106824545288e71c549d36814a4adcc92b2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 19 Sep 2005 06:47:47 +0000 Subject: (remove_cwd_entries): Syntactic tweak: move an assignment out of an if-expression. --- src/remove.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3-70-g09d2