Code

Remove invalid struct initialization warnings.
authorishmal <ishmal@users.sourceforge.net>
Sat, 3 May 2008 18:27:44 +0000 (18:27 +0000)
committerishmal <ishmal@users.sourceforge.net>
Sat, 3 May 2008 18:27:44 +0000 (18:27 +0000)
src/main.cpp

index a48fe1f6b8bf946c9a45e9b31f124329a7bc36c6..463428e0cc809b3a0783a956c6e869677058cdf6 100644 (file)
@@ -1414,11 +1414,13 @@ bool replaceArgs( int& argc, char**& argv )
                 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 );