1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-10 17:31:56 +02:00

maint: basename: initialize values while declaring

* src/basename.c (remove_suffix): Initialize values on the same line as
their declarations.
This commit is contained in:
Collin Funk
2025-12-07 14:55:18 -08:00
parent c3eb8b4579
commit 597dfa0d31

View File

@@ -83,11 +83,8 @@ Examples:\n\
static void
remove_suffix (char *name, char const *suffix)
{
char *np;
char const *sp;
np = name + strlen (name);
sp = suffix + strlen (suffix);
char *np = name + strlen (name);
char const *sp = suffix + strlen (suffix);
while (np > name && sp > suffix)
if (*--np != *--sp)