dav/main.c

changeset 204
4f0207044837
parent 201
8e5856182668
child 207
de23f8881e9f
equal deleted inserted replaced
203:9a93ebd71984 204:4f0207044837
258 *path = sstrdup(p).ptr; 258 *path = sstrdup(p).ptr;
259 } else { 259 } else {
260 repo = calloc(1, sizeof(Repository)); 260 repo = calloc(1, sizeof(Repository));
261 repo->name = strdup(""); 261 repo->name = strdup("");
262 repo->decrypt_content = true; 262 repo->decrypt_content = true;
263 repo->verification = true;
263 repo->authmethods = CURLAUTH_BASIC; 264 repo->authmethods = CURLAUTH_BASIC;
264 if(url[ulen-1] == '/') { 265 if(url[ulen-1] == '/') {
265 repo->url = strdup(url); 266 repo->url = strdup(url);
266 *path = strdup("/"); 267 *path = strdup("/");
267 } else if (strchr(url, '/')) { 268 } else if (strchr(url, '/')) {

mercurial