File: fix-set-but-not-used-warning.patch

package info (click to toggle)
apache-mod-auth-ntlm-winbind 0.0.0.lorikeet%2Bsvn%2B801-4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 348 kB
  • sloc: sh: 2,774; ansic: 761; makefile: 67
file content (33 lines) | stat: -rw-r--r-- 1,093 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 );