Commit Diff
--- lib/object.c +++ lib/object.c @@ -1447,7 +1447,8 @@ got_object_open_by_path(struct got_object **obj, struc if (*s != '/') { s++; - continue; + if (*s) + continue; } /* end of path segment */
--- lib/object.c +++ lib/object.c @@ -1447,7 +1447,8 @@ got_object_open_by_path(struct got_object **obj, struc if (*s != '/') { s++; - continue; + if (*s) + continue; } /* end of path segment */