From: Jim Meyering Date: Sat, 29 Jul 2000 16:45:30 +0000 (+0000) Subject: (base_name): Use ISSLASH rather than comparing against `/'. X-Git-Tag: TEXTUTILS-2_0g~91 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=70c58e8192f72b77c380fc05559dd884be5d292f;p=thirdparty%2Fcoreutils.git (base_name): Use ISSLASH rather than comparing against `/'. --- diff --git a/lib/basename.c b/lib/basename.c index 5237b11b72..290e80e619 100644 --- a/lib/basename.c +++ b/lib/basename.c @@ -64,7 +64,7 @@ base_name (char const *name) --base; /* Make sure the last byte is not a slash. */ - assert (all_slashes || *(p - 1) != '/'); + assert (all_slashes || !ISSLASH (*(p - 1))); return (char *) base; }