From: Jim Meyering Date: Mon, 19 Sep 2005 06:47:47 +0000 (+0000) Subject: (remove_cwd_entries): Syntactic tweak: move an X-Git-Tag: v5.90~174 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f721f106824545288e71c549d36814a4adcc92b2;p=thirdparty%2Fcoreutils.git (remove_cwd_entries): Syntactic tweak: move an assignment out of an if-expression. --- diff --git a/src/remove.c b/src/remove.c index aad4856b6c..58042286ad 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) {