Author: hwright Date: Tue Jun 28 18:49:56 2011 New Revision: 1140782 URL: http://svn.apache.org/viewvc?rev=1140782&view=rev Log: * subversion/libsvn_ra_neon/session.c (get_server_settings): Conditionally declare a variable which is only used conditionally.
Found by: Philipp Kloke <[email protected]> Modified: subversion/trunk/subversion/libsvn_ra_neon/session.c Modified: subversion/trunk/subversion/libsvn_ra_neon/session.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_neon/session.c?rev=1140782&r1=1140781&r2=1140782&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_ra_neon/session.c (original) +++ subversion/trunk/subversion/libsvn_ra_neon/session.c Tue Jun 28 18:49:56 2011 @@ -451,8 +451,12 @@ static svn_error_t *get_server_settings( apr_pool_t *pool) { const char *exceptions, *port_str, *timeout_str, *server_group; - const char *debug_str, *http_auth_types; + const char *debug_str; svn_boolean_t is_exception = FALSE; +#ifdef SVN_NEON_0_26 + const char *http_auth_types = NULL; +#endif + /* If we find nothing, default to nulls. */ *proxy_host = NULL; *proxy_port = (unsigned int) -1; @@ -461,7 +465,6 @@ static svn_error_t *get_server_settings( port_str = NULL; timeout_str = NULL; debug_str = NULL; - http_auth_types = NULL; *pk11_provider = NULL; /* Use the default proxy-specific settings if and only if
