From ff40921ed81e3fdca9174b0074df6ba1dccd1cb7 Mon Sep 17 00:00:00 2001 From: GetAway Date: Mon, 6 Jul 2020 13:20:36 +0200 Subject: [PATCH] mod_yparser.cpp: fix warning misleading-indentation --- 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 8d8912eec..7dd10b0e1 100644 --- a/src/nhttpd/yhttpd_mods/mod_yparser.cpp +++ b/src/nhttpd/yhttpd_mods/mod_yparser.cpp @@ -508,9 +508,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];