Fix issues with va_lists

Identified by clangsa.
This commit is contained in:
Patrick Georgi 2025-12-14 00:12:57 +01:00
parent aced075a9f
commit acdee57318
2 changed files with 1 additions and 2 deletions

View File

@ -200,6 +200,7 @@ int sprintf_len (XeString s, XeString format, ...)
va_start(ap, format);
if (s) *s = XeChar_NULL;
vsprintf(s, format, ap);
va_end(ap);
return(strlen(s));
}

View File

@ -292,8 +292,6 @@ entry(const char *argskey, _Tt_entry_pt func, ...)
break;
}
va_start(ap, func);
// paramater checking for NULL & cascaded errors, over-long
// propnames, etc.
preview = argskey;