diff options
author | Jim Meyering <jim@meyering.net> | 2000-07-29 16:45:30 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-07-29 16:45:30 +0000 |
commit | 70c58e8192f72b77c380fc05559dd884be5d292f (patch) | |
tree | 5e14e0b6a1a22b7f4827be3adbb201c594bcfd65 /lib | |
parent | ce49687fac435a2e1d143fad322aca7cfe934387 (diff) | |
download | coreutils-70c58e8192f72b77c380fc05559dd884be5d292f.tar.xz |
(base_name): Use ISSLASH rather than comparing against `/'.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/basename.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/basename.c b/lib/basename.c index 5237b11b7..290e80e61 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; } |