Commit 5ba4f53c authored by unknown's avatar unknown
Browse files

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -94,6 +94,8 @@ sub spawn_impl ($$$$$$$$) {
  my $pid_file=   shift;                 # FIXME
  my $spawn_opts= shift;

  mtr_error("Can't spawn with empty \"path\"") unless defined $path;

  if ( $::opt_script_debug )
  {
    print STDERR "\n";