diff --git a/mozilla/string/obsolete/nsStr.cpp b/mozilla/string/obsolete/nsStr.cpp index 46afdc43fe7..46c668ede57 100644 --- a/mozilla/string/obsolete/nsStr.cpp +++ b/mozilla/string/obsolete/nsStr.cpp @@ -38,7 +38,7 @@ //static const char* kCallFindChar = "For better performance, call FindChar() for targets whose length==1."; //static const char* kCallRFindChar = "For better performance, call RFindChar() for targets whose length==1."; -static const PRUnichar gCommonEmptyBuffer[1]; +static const PRUnichar gCommonEmptyBuffer[1] = {0}; /** * This method initializes all the members of the nsStr structure diff --git a/mozilla/xpcom/ds/nsStr.cpp b/mozilla/xpcom/ds/nsStr.cpp index 46afdc43fe7..46c668ede57 100644 --- a/mozilla/xpcom/ds/nsStr.cpp +++ b/mozilla/xpcom/ds/nsStr.cpp @@ -38,7 +38,7 @@ //static const char* kCallFindChar = "For better performance, call FindChar() for targets whose length==1."; //static const char* kCallRFindChar = "For better performance, call RFindChar() for targets whose length==1."; -static const PRUnichar gCommonEmptyBuffer[1]; +static const PRUnichar gCommonEmptyBuffer[1] = {0}; /** * This method initializes all the members of the nsStr structure diff --git a/mozilla/xpcom/string/obsolete/nsStr.cpp b/mozilla/xpcom/string/obsolete/nsStr.cpp index 46afdc43fe7..46c668ede57 100644 --- a/mozilla/xpcom/string/obsolete/nsStr.cpp +++ b/mozilla/xpcom/string/obsolete/nsStr.cpp @@ -38,7 +38,7 @@ //static const char* kCallFindChar = "For better performance, call FindChar() for targets whose length==1."; //static const char* kCallRFindChar = "For better performance, call RFindChar() for targets whose length==1."; -static const PRUnichar gCommonEmptyBuffer[1]; +static const PRUnichar gCommonEmptyBuffer[1] = {0}; /** * This method initializes all the members of the nsStr structure