diff options
-rw-r--r-- | lib/stripslash.c | 2 |
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'; } |