summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-12-07 14:13:51 +0000
committerJim Meyering <jim@meyering.net>2000-12-07 14:13:51 +0000
commitbcc94017bc6d15789606026ecf4a03f005a54edf (patch)
tree7a3dc8ec2925db05dd18b80f6fbd5a66d6b8d5ba /lib
parentb615d79ac3495501e060ca0fac9e1c3b75e16a54 (diff)
downloadcoreutils-bcc94017bc6d15789606026ecf4a03f005a54edf.tar.xz
convert a > expression to the equivalent < one
Diffstat (limited to 'lib')
-rw-r--r--lib/stripslash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stripslash.c b/lib/stripslash.c
index 20cdc48b5..f55c76912 100644
--- a/lib/stripslash.c
+++ b/lib/stripslash.c
@@ -41,6 +41,6 @@ strip_trailing_slashes (char *path)
int last;
last = strlen (path) - 1;
- while (last > 0 && ISSLASH (path[last]))
+ while (0 < last && ISSLASH (path[last]))
path[last--] = '\0';
}