summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fd19a78)
raw | patch | inline | side by side (parent: fd19a78)
author | ishmal <ishmal@users.sourceforge.net> | |
Sat, 3 May 2008 18:27:44 +0000 (18:27 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Sat, 3 May 2008 18:27:44 +0000 (18:27 +0000) |
src/main.cpp | patch | blob | history |
diff --git a/src/main.cpp b/src/main.cpp
index a48fe1f6b8bf946c9a45e9b31f124329a7bc36c6..463428e0cc809b3a0783a956c6e869677058cdf6 100644 (file)
--- a/src/main.cpp
+++ b/src/main.cpp
if ( wildcarded )
{
#ifdef REPLACEARGS_ANSI
- WIN32_FIND_DATAA data = {0};
+ WIN32_FIND_DATAA data;
#else
- WIN32_FIND_DATAW data = {0};
+ WIN32_FIND_DATAW data;
#endif // REPLACEARGS_ANSI
+ memset((void *)&data, 0, sizeof(data));
+
int baseLen = wcslen(parsed[i1]) + 2;
wchar_t* base = new wchar_t[baseLen];
wcsncpy( base, parsed[i1], baseLen );