Bug 759061 - nsINIParser.cpp fails to compile on mingw r=tabraldes
authorJacek Caban <jacek@codeweavers.com>
Thu, 31 May 2012 16:09:36 +0200
changeset 99453 fe129d98513ea03d083d8457422cde017a75c693
parent 99452 fa3fe2aff1f56fa0320c4bc1dae935833b4af5b5
child 99454 0b607361839a316c371001f5c91d649197ea9d98
push idunknown
push userunknown
push dateunknown
reviewerstabraldes
bugs759061
milestone15.0a1
Bug 759061 - nsINIParser.cpp fails to compile on mingw r=tabraldes
xpcom/glue/nsINIParser.cpp
--- a/xpcom/glue/nsINIParser.cpp
+++ b/xpcom/glue/nsINIParser.cpp
@@ -153,17 +153,17 @@ nsINIParser::InitFromFILE(FILE *fd)
                                    NULL,
                                    0,
                                    NULL,
                                    NULL);
         if (0 == flen) {
             return NS_ERROR_FAILURE;
         }
 
-        nsAutoArrayPtr<char> utf8Buffer = new char[flen];
+        nsAutoArrayPtr<char> utf8Buffer(new char[flen]);
         if (0 == WideCharToMultiByte(CP_UTF8,
                                      0,
                                      reinterpret_cast<LPWSTR>(buffer),
                                      -1,
                                      utf8Buffer,
                                      flen,
                                      NULL,
                                      NULL)) {