1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fix compiler warnings

-Wdeprecated-declarations:
  Replace deprecated xmlXPathInit() with xmlInitParser()[1]

-Wmaybe-uninitialized:
  `fil1` was initialized to 0 in commit 0138220 to fix compiler
  warnings, but `fil2` was missed.

ref:
[1]: https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/libxml2-xpath.html#xmlXPathInit
This commit is contained in:
Meng-Hsiu Chiang
2023-05-03 00:34:31 +00:00
committed by Andrew Hutchings
parent 3eab2275d0
commit 774dee9abc
2 changed files with 2 additions and 2 deletions

View File

@@ -330,7 +330,7 @@ bool TDBEXT::MakeSrcdef(PGLOBAL g)
char *catp = strstr(Srcdef, "%s");
if (catp) {
char *fil1 = 0, *fil2;
char *fil1 = 0, *fil2 = 0;
PCSZ ph = ((EXTDEF*)To_Def)->Phpos;
if (!ph)