diff --git a/src/finder.cpp b/src/finder.cpp index e4f808c74b..87bced9716 100644 --- a/src/finder.cpp +++ b/src/finder.cpp @@ -302,6 +302,7 @@ class JarIndex { abort(s); } } + return 0; } @@ -339,11 +340,17 @@ class JarElement: public Element { virtual System::Region* find(const char* name) { init(); + + while (*name == '/') name++; + return (index ? index->find(name) : 0); } virtual bool exists(const char* name) { init(); + + while (*name == '/') name++; + return (index ? index->exists(name) : 0); }