summaryrefslogtreecommitdiff
path: root/plugins/Variables
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-12-06 18:02:31 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-12-06 18:02:31 +0300
commit3454255df72799b6127def97f1445d39dfb3eda5 (patch)
tree1c7c38437930bac54d911576c0c20d81327be0a5 /plugins/Variables
parent73aaa5881b6bac6caf6f58d2011e62ee19706292 (diff)
fixes #1049 (memset cannot be used to scrub memory)
Diffstat (limited to 'plugins/Variables')
-rw-r--r--plugins/Variables/src/parse_str.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/plugins/Variables/src/parse_str.cpp b/plugins/Variables/src/parse_str.cpp
index 81207853b1..f13b4a0252 100644
--- a/plugins/Variables/src/parse_str.cpp
+++ b/plugins/Variables/src/parse_str.cpp
@@ -486,8 +486,6 @@ static wchar_t *parseStrchr(ARGUMENTSINFO *ai)
if (ai->argc != 3)
return nullptr;
- char *szVal[34];
- memset(szVal, 0, sizeof(szVal));
wchar_t *c = wcschr(ai->targv[1], *ai->targv[2]);
if (c == nullptr || *c == 0)
return mir_wstrdup(L"0");