diff options
author | Sean McBride <sean@rogue-research.com> | 2022-10-21 20:43:34 -0400 |
---|---|---|
committer | Sean McBride <sean@rogue-research.com> | 2022-10-25 09:03:12 -0400 |
commit | 2ee10be8c8fbe5863ed424113527caf4572e0b81 (patch) | |
tree | 2741388515b534899b52cdcd0ec0682af2dc3dfc /expat | |
parent | 18439d4f8b7452d6ce031eaad23969ca799ad088 (diff) | |
download | libexpat-git-2ee10be8c8fbe5863ed424113527caf4572e0b81.tar.gz |
Fixed all clang -Wconditional-uninitialized warnings
Just initialized to zero to shut the compiler up.
Diffstat (limited to 'expat')
-rw-r--r-- | expat/tests/runtests.c | 2 | ||||
-rw-r--r-- | expat/xmlwf/xmlwf.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index acb744dd..24e62a45 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -8326,7 +8326,7 @@ external_entity_dbl_handler(XML_Parser parser, const XML_Char *context, const XML_Char *publicId) { intptr_t callno = (intptr_t)XML_GetUserData(parser); const char *text; - XML_Parser new_parser; + XML_Parser new_parser = NULL; int i; const int max_alloc_count = 20; diff --git a/expat/xmlwf/xmlwf.c b/expat/xmlwf/xmlwf.c index 471f2a20..499825ed 100644 --- a/expat/xmlwf/xmlwf.c +++ b/expat/xmlwf/xmlwf.c @@ -964,7 +964,7 @@ tmain(int argc, XML_Char **argv) { int continueOnError = 0; float attackMaximumAmplification = -1.0f; /* signaling "not set" */ - unsigned long long attackThresholdBytes; + unsigned long long attackThresholdBytes = 0; XML_Bool attackThresholdGiven = XML_FALSE; int exitCode = XMLWF_EXIT_SUCCESS; |