summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-05-14 15:47:53 +0000
committerJim Meyering <jim@meyering.net>2004-05-14 15:47:53 +0000
commitc54468df2ecc43a7859d5762d251106828f8cc58 (patch)
tree64e80f2aadf80d7cd3142ff237ee7867c98337f1
parentc134ce8fabc0995d792fa26aba98d6b2254d00ad (diff)
downloadcoreutils-c54468df2ecc43a7859d5762d251106828f8cc58.tar.xz
(AD_pop_and_chdir): Eliminate an unnecessary call to AC_stack_top.
-rw-r--r--src/remove.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remove.c b/src/remove.c
index bded9278d..297331417 100644
--- a/src/remove.c
+++ b/src/remove.c
@@ -374,13 +374,13 @@ AD_pop_and_chdir (Dirstack_state *ds)
struct AD_ent *top;
AD_stack_pop (ds);
+ top = AD_stack_top (ds);
/* Propagate any failure to parent. */
- UPDATE_STATUS (AD_stack_top(ds)->status, old_status);
+ UPDATE_STATUS (top->status, old_status);
assert (AD_stack_height (ds));
- top = AD_stack_top (ds);
if (1 < AD_stack_height (ds))
{
struct stat sb;