Author: metze Date: 2006-09-07 12:40:29 +0000 (Thu, 07 Sep 2006) New Revision: 18220
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18220 Log: $#foo returns the index of the last element not the count of elements, so we need >= 0. as 0 means one element metze Modified: branches/SAMBA_4_0/source/build/smb_build/output.pm Changeset: Modified: branches/SAMBA_4_0/source/build/smb_build/output.pm =================================================================== --- branches/SAMBA_4_0/source/build/smb_build/output.pm 2006-09-07 12:10:06 UTC (rev 18219) +++ branches/SAMBA_4_0/source/build/smb_build/output.pm 2006-09-07 12:40:29 UTC (rev 18220) @@ -133,7 +133,7 @@ next if $elem == $part; push(@{$part->{PUBLIC_CFLAGS}}, @{$elem->{CPPFLAGS}}) if (defined(@{$elem->{CPPFLAGS}})) - and ($#{$elem->{CPPFLAGS}} > 0); + and ($#{$elem->{CPPFLAGS}} >= 0); next if not defined($elem->{CFLAGS}); next if $elem->{CFLAGS} eq "";
