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
Dump backtrace in case of SIGABRT, SIGSEGV YAZ-787
[yaz-moved-to-github.git]
/
src
/
tpath.c
diff --git
a/src/tpath.c
b/src/tpath.c
index
deaf6f4
..
231d29f
100644
(file)
--- a/
src/tpath.c
+++ b/
src/tpath.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2012 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
/**
* See the file LICENSE for details.
*/
/**
@@
-56,7
+56,7
@@
size_t yaz_filepath_comp(const char **path_p, const char **comp)
path_sep = strchr(path+2, ':');
else
path_sep = 0;
path_sep = strchr(path+2, ':');
else
path_sep = 0;
-
+
if (path_sep)
{
len = path_sep - path;
if (path_sep)
{
len = path_sep - path;
@@
-82,7
+82,7
@@
char *yaz_filepath_resolve(const char *fname, const char *path,
{
struct stat stat_buf;
size_t slen = 0;
{
struct stat stat_buf;
size_t slen = 0;
-
+
*fullpath = '\0';
if (path)
{
*fullpath = '\0';
if (path)
{
@@
-131,7
+131,7
@@
int yaz_is_abspath(const char *p)
#ifdef WIN32
if (*p == '\\')
return 1;
#ifdef WIN32
if (*p == '\\')
return 1;
- if (*p && p[1] == ':' &&
+ if (*p && p[1] == ':' &&
((*p >= 'A' && *p <= 'Z') || (*p >= 'a' && *p <= 'z')))
return 1;
#endif
((*p >= 'A' && *p <= 'Z') || (*p >= 'a' && *p <= 'z')))
return 1;
#endif