summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-03-10 14:10:07 +0000
committerfukachan <fukachan>2001-03-10 14:10:07 +0000
commitdb636cf2cc29819e0c9546913f4bae81a73ca8ad (patch)
tree70a3fdc574ac08ea205d346a4170ff4b6aa93876
parentc54631b086a7bee55b8d7af434cfe86e00e532bb (diff)
downloadfml8-db636cf2cc29819e0c9546913f4bae81a73ca8ad.tar.gz
fml8-db636cf2cc29819e0c9546913f4bae81a73ca8ad.tar.bz2
fml8-db636cf2cc29819e0c9546913f4bae81a73ca8ad.zip
bug fix $ml_home_dir check algorithm
-rw-r--r--fml/lib/FML/Process/Kernel.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/fml/lib/FML/Process/Kernel.pm b/fml/lib/FML/Process/Kernel.pm
index 8fdf5b77..ff4dda07 100644
--- a/fml/lib/FML/Process/Kernel.pm
+++ b/fml/lib/FML/Process/Kernel.pm
@@ -29,9 +29,6 @@ sub new
my ($curproc) = {}; # alloc memory as the struct current_process.
my ($cfargs) = {};
- # fndamental checks
- croak("Error: \$ml_home_dir not defined") unless $args->{ ml_home_dir };
-
# import variables
my (@import_vars) = qw(ml_home_prefix ml_home_dir);
for my $var (@import_vars) {
@@ -44,6 +41,10 @@ sub new
}
croak "variable $var is not defined.\n";
+ # fndamental checks
+ unless ($args->{ ml_home_dir }) {
+ croak("Error: \$ml_home_dir not defined");
+ }
}
}