From ff88d9da166c9779d21bb72d4fca2c55057c18ba Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 25 May 2015 09:22:14 -0400 Subject: [PATCH] Bug: ::execute concatenates output - The ::execute function concatenates output to the std::string provided, which is almost never wanted. Now it clears first. --- src/util.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util.cpp b/src/util.cpp index b4c048668..3cd9906a1 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -289,6 +289,7 @@ int execute ( close (pin[1]); } + output = ""; read_retval = -1; written = 0; while (read_retval != 0 || input.size () != written)