summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-05-28 22:31:26 +0000
committerJim Meyering <jim@meyering.net>2004-05-28 22:31:26 +0000
commit70c5c9e8c493d1701132df062579a7bc9763a4c7 (patch)
treec87a1e138b77aeda67982865a55f4a898b8e23cf
parent6fcceb6b023030462a09d45c48fb454b2e7517cb (diff)
downloadcoreutils-70c5c9e8c493d1701132df062579a7bc9763a4c7.tar.xz
(push_dir): Merge declaration and adjacent assignment into a single statement.
-rw-r--r--src/remove.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/remove.c b/src/remove.c
index e561307d8..c29623af6 100644
--- a/src/remove.c
+++ b/src/remove.c
@@ -180,9 +180,7 @@ hash_compare_strings (void const *x, void const *y)
static inline void
push_dir (Dirstack_state *ds, const char *dir_name)
{
- size_t len;
-
- len = strlen (dir_name);
+ size_t len = strlen (dir_name);
/* Append the string onto the stack. */
obstack_grow (&ds->dir_stack, dir_name, len);