From 817d153870b4ecfe3a0063a0f0086831ace7f46a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 7 Sep 2006 12:40:29 +0000 Subject: r18220: $#foo returns the index of the last element not the count of elements, so we need >= 0. as 0 means one element metze (This used to be commit d8b5d0c9a75731c8627e8fabb364ec0ad0e9decd) --- source4/build/smb_build/output.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/build/smb_build/output.pm b/source4/build/smb_build/output.pm index 5bdb4a417a..92531835fa 100644 --- a/source4/build/smb_build/output.pm +++ b/source4/build/smb_build/output.pm @@ -133,7 +133,7 @@ sub create_output($$) 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 ""; -- cgit