projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Change yaz_filepath_resolve for path="" (empty)
[yaz-moved-to-github.git]
/
src
/
tpath.c
diff --git
a/src/tpath.c
b/src/tpath.c
index
a58bb3a
..
80dca2d
100644
(file)
--- a/
src/tpath.c
+++ b/
src/tpath.c
@@
-74,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;