diff --git a/PowerEditor/src/WinControls/OpenSaveFileDialog/FileDialog.cpp b/PowerEditor/src/WinControls/OpenSaveFileDialog/FileDialog.cpp index a82ccc7ed..b9a9586d8 100644 --- a/PowerEditor/src/WinControls/OpenSaveFileDialog/FileDialog.cpp +++ b/PowerEditor/src/WinControls/OpenSaveFileDialog/FileDialog.cpp @@ -42,9 +42,7 @@ FileDialog::FileDialog(HWND hwnd, HINSTANCE hInst) staticThis = this; //for (int i = 0 ; i < nbExtMax ; i++) // _extArray[i][0] = '\0'; - - _fileName[0] = '\0'; - + memset(_fileName, 0, sizeof(_fileName)); _winVersion = (NppParameters::getInstance())->getWinVersion(); _ofn.lStructSize = sizeof(_ofn);