libidav/webdav.c

changeset 38
b855f76e965b
parent 36
c8755c87ce7f
child 39
3e55bed345f9
--- a/libidav/webdav.c	Mon Sep 02 10:50:29 2013 +0200
+++ b/libidav/webdav.c	Tue Sep 03 12:08:35 2013 +0200
@@ -137,6 +137,7 @@
     DavSession *sn = malloc(sizeof(DavSession));
     sn->errorstr = NULL;
     sn->error = DAV_OK;
+    sn->flags = 0;
     if(url.ptr[url.length - 1] == '/') {
         sn->base_url = strdup(base_url);
     } else {
@@ -154,7 +155,7 @@
     // set proxy
     DavProxy *proxy = sstrprefix(url, S("https")) ? context->https_proxy
                                                   : context->http_proxy;
-
+    
     if (proxy->url) {
         curl_easy_setopt(sn->handle, CURLOPT_PROXY, proxy->url);
         if (proxy->username) {

mercurial