r14509: Attempt to fix the build on "sun1"
authorVolker Lendecke <vlendec@samba.org>
Fri, 17 Mar 2006 11:53:33 +0000 (11:53 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:15:35 +0000 (11:15 -0500)
(This used to be commit 6704859950eb93d86906d4916cf6842d9a970d2f)

source3/nsswitch/wbinfo.c

index 571a1b3e19f4c94b52bc17bb188717d126d0d081..89ffa6b5b32f81ced03b78928b8d2be10ae112ff 100644 (file)
@@ -1293,7 +1293,7 @@ int main(int argc, char **argv)
                                                WBFLAG_PAM_INFO3_TEXT;
                                fstring tok;
                                int i;
-                               const char *arg[] = { string_arg, NULL };
+                               const char *arg[] = { NULL, NULL };
                                const char *cctypes[] = { "FILE", 
                                                          "KCM", 
                                                          "KCM:0", 
@@ -1301,6 +1301,8 @@ int main(int argc, char **argv)
                                                          NULL, 
                                                          "0"};
 
+                               arg[0] = string_arg;
+
                                while (next_token(arg, tok, LIST_SEP, sizeof(tok))) {
 
                                        for (i=0; i < ARRAY_SIZE(cctypes); i++) {