diff options
author | Michael Adam <obnox@samba.org> | 2009-01-12 13:04:40 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-01-12 13:04:40 +0100 |
commit | 6f53a487b40de03380db3562733621e209342832 (patch) | |
tree | cbc4aff3eb232b7e06e52d9a3879c295737eff4c | |
parent | 19a05bf2f485023b11b41dfae3f6459847d55ef7 (diff) | |
download | samba-6f53a487b40de03380db3562733621e209342832.tar.gz samba-6f53a487b40de03380db3562733621e209342832.tar.bz2 samba-6f53a487b40de03380db3562733621e209342832.zip |
nss_wrapper.pl: fix "Use of uninitialized value $i in array element" messages
I just saw this in "make test" after "SMBD OUTPUT:"...
Michael
-rw-r--r-- | lib/nss_wrapper/nss_wrapper.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nss_wrapper/nss_wrapper.pl b/lib/nss_wrapper/nss_wrapper.pl index b1c9be5365..dbb7f85dc4 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; } |