mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 03:49:20 +03:00
owncloud: Fix compile warnings if NDEBUG is not defined.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
parent
9c09c1f1cb
commit
03685bd15b
1 changed files with 7 additions and 7 deletions
|
@ -676,24 +676,24 @@ static int fetch_resource_list( const char *uri,
|
||||||
ret = NE_CONNECT;
|
ret = NE_CONNECT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifndef NDEBUG
|
||||||
if( ret != NE_OK ) {
|
if( ret != NE_OK ) {
|
||||||
const char *err = NULL;
|
const char *err = ne_get_error(dav_session.ctx);
|
||||||
|
|
||||||
err = ne_get_error( dav_session.ctx );
|
|
||||||
DEBUG_WEBDAV("WRN: propfind named failed with %d, request error: %s", ret, err ? err : "<nil>");
|
DEBUG_WEBDAV("WRN: propfind named failed with %d, request error: %s", ret, err ? err : "<nil>");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if( hdl )
|
if( hdl )
|
||||||
ne_propfind_destroy(hdl);
|
ne_propfind_destroy(hdl);
|
||||||
|
|
||||||
if( ret == NE_REDIRECT ) {
|
if( ret == NE_REDIRECT ) {
|
||||||
const ne_uri *redir_ne_uri = NULL;
|
const ne_uri *redir_ne_uri = NULL;
|
||||||
char *redir_uri = NULL;
|
|
||||||
redir_ne_uri = ne_redirect_location(dav_session.ctx);
|
redir_ne_uri = ne_redirect_location(dav_session.ctx);
|
||||||
if( redir_ne_uri ) {
|
#ifndef NDEBUG
|
||||||
redir_uri = ne_uri_unparse(redir_ne_uri);
|
if (redir_ne_uri) {
|
||||||
|
char *redir_uri = ne_uri_unparse(redir_ne_uri);
|
||||||
DEBUG_WEBDAV("Permanently moved to %s", redir_uri);
|
DEBUG_WEBDAV("Permanently moved to %s", redir_uri);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if( ret != NE_OK ) {
|
if( ret != NE_OK ) {
|
||||||
|
|
Loading…
Reference in a new issue