summaryrefslogtreecommitdiffstats
path: root/util.cxx
diff options
context:
space:
mode:
authorddomingo <ddomingo@redhat.com>2008-09-02 09:59:14 +1000
committerddomingo <ddomingo@redhat.com>2008-09-02 09:59:14 +1000
commit6e2fec6199616ddd76cee89e7347af8b9bc75525 (patch)
tree12a39cdad7bc79ab3df6559b430e118ae9b0e738 /util.cxx
parentca947d81acf86cd346f139316e1287dcf42160de (diff)
parente491a713fa72f536955be51c0222a3f0b1befc82 (diff)
downloadsystemtap-steved-6e2fec6199616ddd76cee89e7347af8b9bc75525.tar.gz
systemtap-steved-6e2fec6199616ddd76cee89e7347af8b9bc75525.tar.xz
systemtap-steved-6e2fec6199616ddd76cee89e7347af8b9bc75525.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'util.cxx')
-rw-r--r--util.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/util.cxx b/util.cxx
index 97425d76..d57ef88c 100644
--- a/util.cxx
+++ b/util.cxx
@@ -173,7 +173,7 @@ find_executable(const char *name, string& retpath)
if (!p)
return false;
path = p;
-
+
// Split PATH up.
tokenize(path, dirs, string(":"));
@@ -215,8 +215,8 @@ const string cmdstr_quoted(const string& cmd)
string::size_type pos = 0;
quoted_cmd += quote;
- for (string::size_type quote_pos = cmd.find(quote, pos);
- quote_pos != string::npos;
+ for (string::size_type quote_pos = cmd.find(quote, pos);
+ quote_pos != string::npos;
quote_pos = cmd.find(quote, pos)) {
quoted_cmd += cmd.substr(pos, quote_pos - pos);
quoted_cmd += replace;