summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewewukek <ewewukek@gmail.com>2024-01-04 15:12:37 +0300
committerFedja Beader <fedja@protonmail.ch>2024-02-21 22:15:28 +0000
commite27e691a7cb9907d52534d001c0bcc61c145c8d1 (patch)
tree9dcc0f295d5ccc8e37b9416f0bb36c42afa6ea9d
parent9e6069cac80e851cc8af8ef3a3851289d4c92675 (diff)
downloadplus-e27e691a7cb9907d52534d001c0bcc61c145c8d1.tar.gz
plus-e27e691a7cb9907d52534d001c0bcc61c145c8d1.tar.bz2
plus-e27e691a7cb9907d52534d001c0bcc61c145c8d1.tar.xz
plus-e27e691a7cb9907d52534d001c0bcc61c145c8d1.zip
Const correct variable to hold __xmlParserVersion() value
-rw-r--r--src/unittests/utils/dumplibs.cc2
-rw-r--r--src/utils/dumplibs.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/unittests/utils/dumplibs.cc b/src/unittests/utils/dumplibs.cc
index be9527a87..15dc05b98 100644
--- a/src/unittests/utils/dumplibs.cc
+++ b/src/unittests/utils/dumplibs.cc
@@ -57,7 +57,7 @@ TEST_CASE("dumplibs tests", "")
#ifdef ENABLE_LIBXML
SECTION("libxml2")
{
- const char **xmlVersion = __xmlParserVersion();
+ const char *const *xmlVersion = __xmlParserVersion();
REQUIRE(xmlVersion != nullptr);
REQUIRE(*xmlVersion != nullptr);
REQUIRE(std::string(*xmlVersion) ==
diff --git a/src/utils/dumplibs.cpp b/src/utils/dumplibs.cpp
index 8b13cdd38..1bdcb139e 100644
--- a/src/utils/dumplibs.cpp
+++ b/src/utils/dumplibs.cpp
@@ -140,7 +140,7 @@ void dumpLibs()
LIBXML_TEST_VERSION
#endif // LIBXML_TEST_VERSION
#ifdef ENABLE_LIBXML
- const char **xmlVersion = __xmlParserVersion();
+ const char *const *xmlVersion = __xmlParserVersion();
if (xmlVersion != nullptr)
logger->log(" libxml2: %s", *xmlVersion);
#endif // ENABLE_LIBXML