From: ishmal Date: Sat, 3 May 2008 18:27:44 +0000 (+0000) Subject: Remove invalid struct initialization warnings. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=147b1a6f8f9c2e9e0daec70dcc9b92ac2707ee7e;p=inkscape.git Remove invalid struct initialization warnings. --- diff --git a/src/main.cpp b/src/main.cpp index a48fe1f6b..463428e0c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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 );