]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(push_dir): Merge declaration and adjacent assignment into a single statement.
authorJim Meyering <jim@meyering.net>
Fri, 28 May 2004 22:31:26 +0000 (22:31 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 28 May 2004 22:31:26 +0000 (22:31 +0000)
src/remove.c

index e561307d8c941682a02ebe65bfa204d202426bc0..c29623af67484c3ca0175a7f323f2a656739bdf3 100644 (file)
@@ -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);