/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2009 Index Data
+ * Copyright (C) 1995-2011 Index Data
* See the file LICENSE for details.
*/
/**
#include <stdio.h>
#include <string.h>
-#include <ctype.h>
#include <yaz/tpath.h>
#include <yaz/log.h>
#if HAVE_SYS_TYPES_H
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;