Commit 5ba4f53c authored by unknown's avatar unknown

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 97fb42a0
...@@ -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