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); va_start(ap, format);
if (s) *s = XeChar_NULL; if (s) *s = XeChar_NULL;
vsprintf(s, format, ap); vsprintf(s, format, ap);
va_end(ap);
return(strlen(s)); return(strlen(s));
} }

View File

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