commit 00530cfb2a244d0bb8246b9c85f9b411a2ff75da from: Stefan Sperling date: Thu Jun 21 19:10:38 2018 UTC don't quit loop too early in got_object_open_by_path() commit - 197aa481b5566c0549a182decf03e6a756f44041 commit + 00530cfb2a244d0bb8246b9c85f9b411a2ff75da blob - d5e33de294798ecea0ba650d0ea1ae10ee4c9b60 blob + b6a155e4947560654679e072157354ffb1c4aa6f --- 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 */