X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftpath.c;h=80dca2da4f388548e11095ebe731fb9afd7df3fe;hb=9dba177f0fcfff591da208b07428ae3d45666084;hp=67b823a0cfcd7f4b4d47c3ba99c6e4898e2074df;hpb=43a9d38d20c1b1bcd1a03b2445a501d27526bd35;p=yaz-moved-to-github.git diff --git a/src/tpath.c b/src/tpath.c index 67b823a..80dca2d 100644 --- a/src/tpath.c +++ b/src/tpath.c @@ -14,7 +14,6 @@ #include #include -#include #include #include #if HAVE_SYS_TYPES_H @@ -75,7 +74,9 @@ size_t yaz_filepath_comp(const char **path_p, const char **comp) char *yaz_filepath_resolve(const char *fname, const char *path, const char *base, char *fullpath) { - for(;;) + if (path && *path == '\0') + path = 0; + for (;;) { struct stat stat_buf; size_t slen = 0;