summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/webdav/NeonSession.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/webdav/NeonSession.cxx')
-rw-r--r--ucb/source/ucp/webdav/NeonSession.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/ucb/source/ucp/webdav/NeonSession.cxx b/ucb/source/ucp/webdav/NeonSession.cxx
index eb87fc9c41ac..7943d8a3d540 100644
--- a/ucb/source/ucp/webdav/NeonSession.cxx
+++ b/ucb/source/ucp/webdav/NeonSession.cxx
@@ -1922,8 +1922,6 @@ int NeonSession::GET( ne_session * sess,
//struct get_context ctx;
ne_request * req = ne_request_create( sess, "GET", uri );
int ret;
- void *cursor = NULL;
- const char *name, *value;
#if NEON_VERSION < 0x0250
if ( getheaders )
@@ -1941,6 +1939,8 @@ int NeonSession::GET( ne_session * sess,
#if NEON_VERSION >= 0x0250
if ( getheaders )
{
+ void *cursor = NULL;
+ const char *name, *value;
while ( ( cursor = ne_response_header_iterate(
req, cursor, &name, &value ) ) != NULL )
{