Solved compiler error by adding scope block

This commit is contained in:
Xavi Del Campo 2020-03-21 01:09:43 +01:00
parent 278517ee1e
commit 92409d275f
1 changed files with 25 additions and 22 deletions

View File

@ -31,6 +31,8 @@ int dynstr_append(struct dynstr *const d, const char *const format, ...)
va_list ap;
va_start(ap, format);
{
const size_t src_len = vsnprintf(NULL, 0, format, ap);
size_t new_len;
va_end(ap);
@ -57,6 +59,7 @@ int dynstr_append(struct dynstr *const d, const char *const format, ...)
{
return 1;
}
}
return 0;
}