summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorGiuseppe Castagno <giuseppe.castagno@acca-esse.eu>2016-08-12 10:43:19 +0200
committerGiuseppe Castagno <giuseppe.castagno@acca-esse.eu>2016-08-12 15:04:29 +0000
commitf16c803e7f5186632adeffc2dad579cf2c720b15 (patch)
treed380d9427d32b2499d026d5be0d7e1deb1e1c4d7 /ucb
parentf2d09e621757fb5f394998afecba399b638f2428 (diff)
Cppcheck: Variable is reassigned a value before the old one has been used
Change-Id: Id49254f3f3b230de4e7d3f116b52a38f6042f6c1 Reviewed-on: https://gerrit.libreoffice.org/28070 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav-neon/NeonSession.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx
index 084e5da2b943..8fdab2feaa21 100644
--- a/ucb/source/ucp/webdav-neon/NeonSession.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx
@@ -850,14 +850,13 @@ void NeonSession::OPTIONS( const OUString & inPath,
SAL_INFO( "ucb.ucp.webdav", "OPTIONS - relative URL <" << inPath << ">" );
rOptions.reset();
- int theRetVal = NE_OK;
Init( rEnv );
ne_request *req = ne_request_create(m_pHttpSession, "OPTIONS", OUStringToOString(
inPath, RTL_TEXTENCODING_UTF8 ).getStr());
- theRetVal = ne_request_dispatch(req);
+ int theRetVal = ne_request_dispatch(req);
//check if http error is in the 200 class (no error)
if (theRetVal == NE_OK && ne_get_status(req)->klass != 2) {