From 3454255df72799b6127def97f1445d39dfb3eda5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 6 Dec 2017 18:02:31 +0300 Subject: fixes #1049 (memset cannot be used to scrub memory) --- plugins/Variables/src/parse_str.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'plugins/Variables/src/parse_str.cpp') 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"); -- cgit v1.2.3