properly close va_list

This commit is contained in:
NRK
2022-04-24 06:10:12 +06:00
parent f119108d61
commit 3ab68dd361

2
Str.c
View File

@@ -105,6 +105,7 @@ Strnew_m_charp(const char *p, ...)
Strcat_charp(r, p);
p = va_arg(ap, char *);
}
va_end(ap);
return r;
}
@@ -276,6 +277,7 @@ Strcat_m_charp(Str x, ...)
va_start(ap, x);
while ((p = va_arg(ap, char *)) != NULL)
Strcat_charp_n(x, p, strlen(p));
va_end(ap);
}
void