aboutsummaryrefslogtreecommitdiffstats
path: root/configure.pl
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-28 16:57:50 +0000
committerlloyd <[email protected]>2008-09-28 16:57:50 +0000
commit722c92122487850e974a14b5e4b90be4b952a6da (patch)
tree59b7f12c4066340c5872b15fc86b2f693c35fc92 /configure.pl
parentae478c48af11cf4e148dddfb4b748d56d311ca67 (diff)
Fix undef warning
Diffstat (limited to 'configure.pl')
-rwxr-xr-xconfigure.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.pl b/configure.pl
index b35349304..dc67adca3 100755
--- a/configure.pl
+++ b/configure.pl
@@ -530,7 +530,9 @@ sub get_options {
foreach my $mod (split(/,/, $mods)) {
# -1 means disabled by user, do not load
- $$config{'modules'}{$mod} = 1 unless($$config{'modules'}{$mod} == -1);
+ $$config{'modules'}{$mod} = 1 unless(
+ defined($$config{'modules'}{$mod}) &&
+ $$config{'modules'}{$mod} == -1);
}
}