summaryrefslogtreecommitdiff
path: root/src/gmutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmutil.c')
-rw-r--r--src/gmutil.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gmutil.c b/src/gmutil.c
index b4cf86aa..1edc41ae 100644
--- a/src/gmutil.c
+++ b/src/gmutil.c
@@ -76,6 +76,9 @@ iLocalDef iBool isDef_(iRangecc cc) {
76 76
77static iRangecc prevPathSeg_(const char *end, const char *start) { 77static iRangecc prevPathSeg_(const char *end, const char *start) {
78 iRangecc seg = { end, end }; 78 iRangecc seg = { end, end };
79 if (start == end) {
80 return seg;
81 }
79 do { 82 do {
80 seg.start--; 83 seg.start--;
81 } while (*seg.start != '/' && seg.start != start); 84 } while (*seg.start != '/' && seg.start != start);