summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-07 12:40:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:52 -0500
commit817d153870b4ecfe3a0063a0f0086831ace7f46a (patch)
tree47d318298d22429257aada3413d0ddfb781b5a24 /source4
parent24f4b6eff2ed9216be93674310ffcc44b7893895 (diff)
downloadsamba-817d153870b4ecfe3a0063a0f0086831ace7f46a.tar.gz
samba-817d153870b4ecfe3a0063a0f0086831ace7f46a.tar.bz2
samba-817d153870b4ecfe3a0063a0f0086831ace7f46a.zip
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)
Diffstat (limited to 'source4')
-rw-r--r--source4/build/smb_build/output.pm2
1 files changed, 1 insertions, 1 deletions
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 "";