summaryrefslogtreecommitdiff
path: root/src/ne_locks.c
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-01-01 22:37:50 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-01-01 22:37:50 +0000
commit0fff0326a60178869fffd03ade3007a208e876dd (patch)
treebb8ad318472a590a4d207bf0fa068c22aaac187d /src/ne_locks.c
parent63add002bd2a1bfaad8f60496752ee15c305a4c3 (diff)
downloadneon-0fff0326a60178869fffd03ade3007a208e876dd.tar.gz
* src/ne_locks.c (ne_lock_using_parent): Zero-initalize lock
structure. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@820 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_locks.c')
-rw-r--r--src/ne_locks.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ne_locks.c b/src/ne_locks.c
index a6e80b6..9bd4959 100644
--- a/src/ne_locks.c
+++ b/src/ne_locks.c
@@ -243,7 +243,7 @@ struct ne_lock *ne_lockstore_findbyuri(ne_lock_store *store,
void ne_lock_using_parent(ne_request *req, const char *path)
{
struct lh_req_cookie *lrc = ne_get_request_private(req, HOOK_ID);
- ne_uri u;
+ ne_uri u = {0};
struct lock_list *item;
char *parent;
@@ -254,7 +254,6 @@ void ne_lock_using_parent(ne_request *req, const char *path)
if (parent == NULL)
return;
- u.userinfo = NULL;
ne_fill_server_uri(ne_get_session(req), &u);
for (item = lrc->store->locks; item != NULL; item = item->next) {