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/stripslash.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gl/stripslash.c') diff --git a/gl/stripslash.c b/gl/stripslash.c index d5b07bca..8f8c38e3 100644 --- a/gl/stripslash.c +++ b/gl/stripslash.c @@ -1,6 +1,6 @@ /* stripslash.c -- remove redundant trailing slashes from a file name - Copyright (C) 1990, 2001, 2003-2006, 2009-2025 Free Software Foundation, + Copyright (C) 1990, 2001, 2003-2006, 2009-2026 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify @@ -31,15 +31,13 @@ bool strip_trailing_slashes (char *file) { char *base = last_component (file); - char *base_lim; - bool had_slash; /* last_component returns "" for file system roots, but we need to turn "///" into "/". */ if (! *base) base = file; - base_lim = base + base_len (base); - had_slash = (*base_lim != '\0'); + char *base_lim = base + base_len (base); + bool had_slash = (*base_lim != '\0'); *base_lim = '\0'; return had_slash; } -- cgit v1.2.3-74-g34f1