diff options
Diffstat (limited to 'src/lib/util/xmlfile.h')
-rw-r--r-- | src/lib/util/xmlfile.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/lib/util/xmlfile.h b/src/lib/util/xmlfile.h index 5e55dbf310e..8d09b2b7e1e 100644 --- a/src/lib/util/xmlfile.h +++ b/src/lib/util/xmlfile.h @@ -45,18 +45,22 @@ enum /* extended error information from parsing */ struct parse_error { - const char * error_message; - int error_line; - int error_column; + parse_error() = default; + + const char * error_message = nullptr; + int error_line = 0; + int error_column = 0; }; // parsing options struct parse_options { - parse_error * error; - void (*init_parser)(XML_ParserStruct *parser); - uint32_t flags; + parse_options() = default; + + parse_error * error = nullptr; + void (*init_parser)(XML_ParserStruct *parser) = nullptr; + uint32_t flags = 0; }; |