* lib/canonicalize.c (canonicalize_filename_mode_stk): Reduce scope of
'logical', 'num_links', 'end_in_extra_buffer'.
+2025-12-10 Bruno Haible <bruno@clisp.org>
+
+ canonicalize: Reduce scope of local variables.
+ * lib/canonicalize.c (canonicalize_filename_mode_stk): Reduce scope of
+ 'logical', 'num_links', 'end_in_extra_buffer'.
+
2025-12-10 Pádraig Brady <P@draigBrady.com>
canonicalize: fix UMR introduced in recent change
char *dest;
char const *start;
- bool logical = (can_mode & CAN_NOLINKS) != 0;
-
- int num_links = 0;
Hash_table *ht = NULL;
- bool end_in_extra_buffer = false;
bool failed = true;
if (!IS_ABSOLUTE_FILE_NAME (name))
start = name + prefix_len;
}
+ bool logical = (can_mode & CAN_NOLINKS) != 0;
+
+ int num_links = 0;
+ bool end_in_extra_buffer = false;
+
for (; *start;)
{
/* Skip sequence of multiple file name separators. */