diff --git a/include/wx/private/wxprintf.h b/include/wx/private/wxprintf.h index 8cfdb2ac1b..1bdc7b62ac 100644 --- a/include/wx/private/wxprintf.h +++ b/include/wx/private/wxprintf.h @@ -795,9 +795,11 @@ struct wxPrintfConvSpecParser typedef wxPrintfConvSpec ConvSpec; wxPrintfConvSpecParser(const CharType *fmt) - : posarg_present(false), nonposarg_present(false), - nargs(0) { + nargs = 0; + posarg_present = + nonposarg_present = false; + memset(pspec, 0, sizeof(pspec)); // parse the format string