diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2008-05-03 18:27:44 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2008-05-03 18:27:44 +0000 |
| commit | dbfc8ea466812178f361d7b6bfcc77390dcc7887 (patch) | |
| tree | a4843ef82d31234431ac5e05d4c275c8b5d7ab86 /src | |
| parent | Removed entries for removed/dead extensions (randompnt.inx and randompos.inx)... (diff) | |
| download | inkscape-dbfc8ea466812178f361d7b6bfcc77390dcc7887.tar.gz inkscape-dbfc8ea466812178f361d7b6bfcc77390dcc7887.zip | |
Remove invalid struct initialization warnings.
(bzr r5589)
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 ); |
