summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2011-09-13 19:53:18 -0700
committerDave Beckett <dave@dajobe.org>2011-10-02 22:28:34 -0700
commit31d43ccde483f9c29087c3b27635fa776d1c6880 (patch)
tree2c25e2fbbe5bbe7b98f1103ac1db349cd045f492 /src
parent581c9ea4947f4f5626654b33e0ba2808089f928c (diff)
downloadraptor-31d43ccde483f9c29087c3b27635fa776d1c6880.tar.gz
set errno to 0
Diffstat (limited to 'src')
-rw-r--r--src/raptor_uri.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/raptor_uri.c b/src/raptor_uri.c
index d4949fee..c2b6d646 100644
--- a/src/raptor_uri.c
+++ b/src/raptor_uri.c
@@ -624,6 +624,7 @@ raptor_uri_filename_to_uri_string(const char *filename)
path = (char*)malloc(path_max);
while(1) {
/* malloc() failed or getcwd() succeeded */
+ errno = 0;
if(!path || getcwd(path, path_max))
break;