From 7314bd19f9931f4611484bf6aa012a3fdb018484 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 16 Jan 2022 16:50:40 +0100 Subject: Windows: Remove unused variable --- src/Format/Tcformat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c index 09ea91f7..54276de7 100644 --- a/src/Format/Tcformat.c +++ b/src/Format/Tcformat.c @@ -11398,7 +11398,6 @@ BOOL CheckWord (char* search) wchar_t path[TC_MAX_PATH]; wchar_t tmp[TC_MAX_PATH]; wchar_t destFileName[TC_MAX_PATH] = L"password1000000.txt"; - wchar_t *destPathName; if (GetModuleFileName (NULL, path, ARRAYSIZE (path)) == 0) { @@ -11421,7 +11420,7 @@ BOOL CheckWord (char* search) } StringCbCatW(tmp, sizeof(tmp), destFileName); - std::ifstream fin(destPathName); + std::ifstream fin(tmp); std::copy(std::istream_iterator(fin), std::istream_iterator(), std::inserter(*this, end())); } -- cgit v1.2.3