[SCM] Samba Shared Repository - branch master updated - 6f53a487b40de03380db3562733621e209342832

Michael Adam obnox at samba.org
Mon Jan 12 12:05:02 GMT 2009


The branch, master has been updated
       via  6f53a487b40de03380db3562733621e209342832 (commit)
      from  19a05bf2f485023b11b41dfae3f6459847d55ef7 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 6f53a487b40de03380db3562733621e209342832
Author: Michael Adam <obnox at samba.org>
Date:   Mon Jan 12 13:04:40 2009 +0100

    nss_wrapper.pl: fix "Use of uninitialized value $i in array element" messages
    
    I just saw this in "make test" after "SMBD OUTPUT:"...
    
    Michael

-----------------------------------------------------------------------

Summary of changes:
 lib/nss_wrapper/nss_wrapper.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/nss_wrapper/nss_wrapper.pl b/lib/nss_wrapper/nss_wrapper.pl
index b1c9be5..dbb7f85 100644
--- a/lib/nss_wrapper/nss_wrapper.pl
+++ b/lib/nss_wrapper/nss_wrapper.pl
@@ -171,7 +171,7 @@ sub passwd_remove_entry($$)
 {
 	my ($passwd, $eref) = @_;
 
-	for(my $i; defined($passwd->{array}[$i]); $i++) {
+	for (my $i = 0; defined($passwd->{array}[$i]); $i++) {
 		if ($eref == $passwd->{array}[$i]) {
 			$passwd->{array}[$i] = undef;
 		}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list