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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user