From 0b6f77e897f084cde912d75984e5b1aa9be479ed Mon Sep 17 00:00:00 2001 From: GetAway Date: Mon, 6 Jul 2020 22:40:59 +0200 Subject: [PATCH] mod_yparser.cpp: fix warning misleading-indentation Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/57a2a70be6a9f7b5117ae6bebd9db18253571e2d Author: GetAway Date: 2020-07-06 (Mon, 06 Jul 2020) --- src/nhttpd/yhttpd_mods/mod_yparser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nhttpd/yhttpd_mods/mod_yparser.cpp b/src/nhttpd/yhttpd_mods/mod_yparser.cpp index 500525e9f..be7951585 100644 --- a/src/nhttpd/yhttpd_mods/mod_yparser.cpp +++ b/src/nhttpd/yhttpd_mods/mod_yparser.cpp @@ -507,9 +507,10 @@ std::string CyParser::YWeb_cgi_cmd(CyhookHandler *hh, std::string ycmd) { yresult = ycgi_vars[ycmd_name]; } else if (ycmd_type == "var-set") { std::string varname, varvalue; - if (ySplitString(ycmd_name, "=", varname, varvalue)) + if (ySplitString(ycmd_name, "=", varname, varvalue)) { varvalue = trim(varvalue); ycgi_vars[varname] = varvalue; + } } else if (ycmd_type == "global-var-get") { pthread_mutex_lock(&yParser_mutex); yresult = ycgi_global_vars[ycmd_name];