Module: check_mk
Branch: master
Commit: fc39d46e5f5291485d31e2c6f2e163fa40a80395
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fc39d46e5f5291…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Dec 12 12:22:04 2016 +0100
another 'make format'
Change-Id: I000c0d4cfc3e736b1b6196057ac63ad9fb49daf2
---
agents/windows/types.cc | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/agents/windows/types.cc b/agents/windows/types.cc
index 3dc24b3..639cf24 100644
--- a/agents/windows/types.cc
+++ b/agents/windows/types.cc
@@ -77,12 +77,11 @@ mrpe_entry *from_string<mrpe_entry *>(const std::string
&value) {
getline(str, command_line);
}
-
// Strip any " from start and end
if (!command_line.empty() && command_line.front() == '"') {
command_line = command_line.substr(1);
}
- if (!command_line.empty() && command_line.back() == '"') {
+ if (!command_line.empty() && command_line.back() == '"') {
command_line = command_line.substr(0, command_line.length() - 1);
}