From fddad091678d63240170b4052d4638f9304b1844 Mon Sep 17 00:00:00 2001 From: fufesou Date: Sat, 6 Apr 2024 23:19:50 +0800 Subject: [PATCH] Refact. Remove unused memset (#7633) Signed-off-by: fufesou --- src/platform/windows_delete_test_cert.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/platform/windows_delete_test_cert.cc b/src/platform/windows_delete_test_cert.cc index 587485172136..838e605162e7 100644 --- a/src/platform/windows_delete_test_cert.cc +++ b/src/platform/windows_delete_test_cert.cc @@ -201,7 +201,6 @@ BOOL DeleteRustDeskTestCertsW_SingleHive(HKEY RootKey, LPWSTR Prefix = NULL) { // Remove wrong empty key store { LPWSTR Complete = (LPWSTR)malloc(512 * sizeof(WCHAR)); - memset(Complete, 0, 512 * sizeof(WCHAR)); if (Complete == 0) break; wsprintfW(Complete, L"%s\\%s", lpSystemCertificatesPath, SubKeyName); if (RegDelnodeW(RootKey, Complete, TRUE)) {