testparm: fix a segfault triggered by setting "unix password sync = yes".
authorMichael Adam <obnox@samba.org>
Tue, 18 Mar 2008 14:30:17 +0000 (15:30 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 18 Mar 2008 14:52:45 +0000 (15:52 +0100)
(introduced by pstring removal 041163551194102ca67fef52c57d87020a1d09bc)

Michael
(This used to be commit 46a021f27c60dc579c9193606997142f5cbeba9e)

source3/utils/testparm.c

index fbfc85535cfe0118d0e92b84f22eb64205f2b8f7..4eed2f57ee2715d13fd2bdcb2f87fd9b843b8d5f 100644 (file)
@@ -120,7 +120,6 @@ parameter.\n" );
 
                                passwd_prog = lp_passwd_program();
                                p = passwd_prog;
-                               *truncated_prog = '\0';
                                next_token_talloc(talloc_tos(),
                                                &p,
                                                &truncated_prog, NULL);