mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
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:
parent
8fd1bb630d
commit
ff88d9da16
1 changed files with 1 additions and 0 deletions
|
@ -289,6 +289,7 @@ int execute (
|
||||||
close (pin[1]);
|
close (pin[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
output = "";
|
||||||
read_retval = -1;
|
read_retval = -1;
|
||||||
written = 0;
|
written = 0;
|
||||||
while (read_retval != 0 || input.size () != written)
|
while (read_retval != 0 || input.size () != written)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue