From c54468df2ecc43a7859d5762d251106828f8cc58 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 14 May 2004 15:47:53 +0000 Subject: (AD_pop_and_chdir): Eliminate an unnecessary call to AC_stack_top. --- src/remove.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/remove.c') 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; -- cgit v1.2.3-54-g00ecf