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

1418
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -79,8 +79,6 @@ AC_DEFINE_UNQUOTED(CLIXON_VERSION_MAJOR, $CLIXON_VERSION_MAJOR, [Clixon major re
AC_DEFINE_UNQUOTED(CLIXON_VERSION_MINOR, $CLIXON_VERSION_MINOR, [Clixon minor release])
AC_DEFINE_UNQUOTED(CLIXON_VERSION_PATCH, $CLIXON_VERSION_PATCH, [Clixon path version])
AC_CHECK_LIB(m, main)
# defines: target_cpu, target_vendor, and target_os.
AC_CANONICAL_TARGET

View file

@ -69,7 +69,7 @@ INSTALLFLAGS = @INSTALLFLAGS@
endif
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
LIBS = @LIBS@ -lm
YACC = @YACC@
LEX = @LEX@

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,6 +1992,7 @@ xml_free0(cxobj *x)
default:
break;
}
if (sz)
memset(x, 0, sz);
return 0;
}