projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8649477
)
(remove_cwd_entries): Syntactic tweak: move an
author
Jim Meyering
<jim@meyering.net>
Mon, 19 Sep 2005 06:47:47 +0000
(06:47 +0000)
committer
Jim Meyering
<jim@meyering.net>
Mon, 19 Sep 2005 06:47:47 +0000
(06:47 +0000)
assignment out of an if-expression.
src/remove.c
patch
|
blob
|
history
diff --git
a/src/remove.c
b/src/remove.c
index
aad4856
..
5804228
100644
(file)
--- 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)
{