From 13e14a6bfd9f29cbfeab0c5161d2a994f97532e7 Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 26 Mar 2026 12:53:53 +0100 Subject: Update/gnulib 2026 03 (#2247) * Sync with the 202601-stable Gnulib code (4a3650d887) * Ignore more deps stuff in gnulib * Remove autogenerated gnulib files * Ignore more gnulib generated headers --- gl/dirname-lgpl.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gl/dirname-lgpl.c') diff --git a/gl/dirname-lgpl.c b/gl/dirname-lgpl.c index 9e0ec565..9f772e0f 100644 --- a/gl/dirname-lgpl.c +++ b/gl/dirname-lgpl.c @@ -1,6 +1,6 @@ /* dirname.c -- return all but the last element in a file name - Copyright (C) 1990, 1998, 2000-2001, 2003-2006, 2009-2025 Free Software + Copyright (C) 1990, 1998, 2000-2001, 2003-2006, 2009-2026 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify @@ -32,7 +32,6 @@ size_t dir_len (char const *file) { size_t prefix_length = FILE_SYSTEM_PREFIX_LEN (file); - size_t length; /* Advance prefix_length beyond important leading slashes. */ prefix_length += (prefix_length != 0 @@ -45,8 +44,10 @@ dir_len (char const *file) : 0)); /* Strip the basename and any redundant slashes before it. */ + size_t length; for (length = last_component (file) - file; - prefix_length < length; length--) + prefix_length < length; + length--) if (! ISSLASH (file[length - 1])) break; return length; -- cgit v1.2.3-74-g34f1