Bug: ::execute concatenates output

- The ::execute function concatenates output to the std::string provided, which
  is almost never wanted. Now it clears first.
This commit is contained in:
Paul Beckingham 2015-05-25 09:22:14 -04:00
parent 8fd1bb630d
commit ff88d9da16

View file

@ -289,6 +289,7 @@ int execute (
close (pin[1]);
}
output = "";
read_retval = -1;
written = 0;
while (read_retval != 0 || input.size () != written)