From dc546ed55f0087d0cd37f3b448042070c48280bf Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki Date: Wed, 31 May 2023 13:06:59 +0200 Subject: [PATCH] Fix typo: condition Signed-off-by: Zygmunt Krynicki --- libuuu/cmd.cpp | 8 ++++---- libuuu/cmd.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libuuu/cmd.cpp b/libuuu/cmd.cpp index c3d235d..e780343 100644 --- a/libuuu/cmd.cpp +++ b/libuuu/cmd.cpp @@ -840,7 +840,7 @@ int CmdIf::parser(char *p) return -1; } - m_condtion = m_cmd.substr(lc, end - lc); + m_condition = m_cmd.substr(lc, end - lc); m_true_cmd = m_cmd.substr(end + 4); return 0; } @@ -869,11 +869,11 @@ int CmdIf::run(CmdCtx *p) int i = 0; for (i = 0; !cmp[i].empty(); i++) { - size_t pos = m_condtion.find(cmp[i], 0); + size_t pos = m_condition.find(cmp[i], 0); if (pos != string::npos) { - l = m_condtion.substr(0, pos); - r = m_condtion.substr(pos + cmp[i].size() + 1); + l = m_condition.substr(0, pos); + r = m_condition.substr(pos + cmp[i].size() + 1); break; } } diff --git a/libuuu/cmd.h b/libuuu/cmd.h index 9a8ea07..939a0a5 100644 --- a/libuuu/cmd.h +++ b/libuuu/cmd.h @@ -174,7 +174,7 @@ public: int run(CmdCtx *p) override; private: - std::string m_condtion; + std::string m_condition; std::string m_protocol; std::string m_true_cmd; void build_map(CmdCtx *p); -- 2.11.4.GIT