Build: Fixed unitialized pointer and missing -lm

This commit is contained in:
Olof hagsand 2025-01-23 12:41:23 +01:00
parent 2d709378f7
commit eff01d924c
4 changed files with 327 additions and 1100 deletions

View file

@ -1956,7 +1956,7 @@ xml_free0(cxobj *x)
{
int i;
cxobj *xc;
size_t sz;
size_t sz = 0;
if (x == NULL)
return 0;
@ -1992,7 +1992,8 @@ xml_free0(cxobj *x)
default:
break;
}
memset(x, 0, sz);
if (sz)
memset(x, 0, sz);
return 0;
}