Add check in 'spawn_impl' that we are not trying to span when the path to the...

Add check in 'spawn_impl' that we are not trying to span when the path to the executable is empty or undefined
parent 92f908dc
...@@ -94,6 +94,8 @@ sub spawn_impl ($$$$$$$$) { ...@@ -94,6 +94,8 @@ sub spawn_impl ($$$$$$$$) {
my $pid_file= shift; # FIXME my $pid_file= shift; # FIXME
my $spawn_opts= shift; my $spawn_opts= shift;
mtr_error("Can't spawn with empty \"path\"") unless defined $path;
if ( $::opt_script_debug ) if ( $::opt_script_debug )
{ {
print STDERR "\n"; print STDERR "\n";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment