diff -r 1c81083a3e46 -r b855f76e965b libidav/webdav.c --- 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) {