diff options
-rw-r--r-- | gui/ThemeEngine.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp index 016cfc136d..6c40001b26 100644 --- a/gui/ThemeEngine.cpp +++ b/gui/ThemeEngine.cpp @@ -746,6 +746,7 @@ bool ThemeEngine::loadDefaultXML() { xmllen += strlen(defaultXML[i]); byte *tmpXML = (byte *)malloc(xmllen + 1); + tmpXML[0] = '\0'; for (int i = 0; i < ARRAYSIZE(defaultXML); i++) strncat((char *)tmpXML, defaultXML[i], xmllen); |