libidav/session.c

changeset 828
e082e5d7d75b
parent 816
839fefbdedc7
equal deleted inserted replaced
827:d9928f11970f 828:e082e5d7d75b
117 CURL *newhandle = curl_easy_duphandle(sn->handle); 117 CURL *newhandle = curl_easy_duphandle(sn->handle);
118 118
119 DavSession *newsn = malloc(sizeof(DavSession)); 119 DavSession *newsn = malloc(sizeof(DavSession));
120 memset(newsn, 0, sizeof(DavSession)); 120 memset(newsn, 0, sizeof(DavSession));
121 newsn->mp = cxBasicMempoolCreate(DAV_SESSION_MEMPOOL_SIZE); 121 newsn->mp = cxBasicMempoolCreate(DAV_SESSION_MEMPOOL_SIZE);
122 newsn->pathcache = cxHashMapCreate(sn->mp->allocator, CX_STORE_POINTERS, DAV_PATH_CACHE_SIZE); 122 newsn->pathcache = cxHashMapCreate(newsn->mp->allocator, CX_STORE_POINTERS, DAV_PATH_CACHE_SIZE);
123 newsn->key = sn->key; 123 newsn->key = sn->key;
124 newsn->errorstr = NULL; 124 newsn->errorstr = NULL;
125 newsn->error = DAV_OK; 125 newsn->error = DAV_OK;
126 newsn->flags = 0; 126 newsn->flags = 0;
127 127

mercurial