Description: Fix "set but not used" warning
Author: Olly Betts <olly@survex.com>
Origin: debian
Forwarded: no
Last-Update: 2012-05-11

--- apache-mod-auth-ntlm-winbind-0.0.0.lorikeet+svn+801.orig/mod_auth_ntlm_winbind.c
+++ apache-mod-auth-ntlm-winbind-0.0.0.lorikeet+svn+801/mod_auth_ntlm_winbind.c
@@ -437,12 +437,12 @@ static struct _ntlm_auth_helper *get_aut
 #endif
 
     if ( auth_helper == NULL ) {
-        struct _ntlm_child_stuff cld;
         apr_pool_t *pool;
 #ifdef APACHE2
         char **argv_out;
         apr_pool_create_ex( &pool, NULL, NULL, NULL ); /* xxx return code */
 #else
+        struct _ntlm_child_stuff cld;
         pool = ap_make_sub_pool( NULL );
 #endif
         auth_helper = apr_pcalloc( pool, sizeof( struct _ntlm_auth_helper ));
@@ -453,9 +453,9 @@ static struct _ntlm_auth_helper *get_aut
         apr_tokenize_to_argv( cmd, &argv_out, pool );
 #else
         ap_register_cleanup( pool, auth_helper, cleanup, ap_null_cleanup );
-#endif
         cld.argv0 = cmd;
         cld.r = r;
+#endif
 
 #ifdef APACHE2
         apr_procattr_create( &attr, pool );
