r13607: Fix compile - don't ref auto variable in a structure initialization.
authorJeremy Allison <jra@samba.org>
Wed, 22 Feb 2006 00:34:35 +0000 (00:34 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:10:19 +0000 (11:10 -0500)
Fix from Richard Bollinger <rabollinger@gmail.com>.
Jeremy.
(This used to be commit 02da5189f1c2a07a7ac02cf51e23782f70829f34)

source3/utils/pdbedit.c

index f1e4fb654283f501e43341be9b040847349d5836..bd336765474b39a45c940e3977812211322b8292 100644 (file)
@@ -655,7 +655,7 @@ int main (int argc, char **argv)
        static char *pwd_can_change_time = NULL;
        static char *pwd_must_change_time = NULL;
        static char *pwd_time_format = NULL;
-       BOOL pw_from_stdin = False;
+       static BOOL pw_from_stdin = False;
 
        struct pdb_methods *bdef = NULL;
        poptContext pc;