1
0
Fork 0

[F] Fixed cppcheck warnings

This commit is contained in:
seleznevae 2018-08-12 13:00:03 +03:00
parent e141f5b35f
commit 67a7331770
2 changed files with 12 additions and 4 deletions

View File

@ -1873,8 +1873,10 @@ int ft_nwrite(ft_table_t *table, size_t count, const char *cell_content, ...)
for (i = 0; i < count; ++i) {
const char *cell = va_arg(va, const char *);
status = ft_write_impl(table, cell);
if (FT_IS_ERROR(status))
if (FT_IS_ERROR(status)) {
va_end(va);
return status;
}
}
va_end(va);
return status;
@ -1921,8 +1923,10 @@ int ft_nwwrite(ft_table_t *table, size_t n, const wchar_t *cell_content, ...)
for (i = 0; i < n; ++i) {
const wchar_t *cell = va_arg(va, const wchar_t *);
status = ft_wwrite_impl(table, cell);
if (FT_IS_ERROR(status))
if (FT_IS_ERROR(status)) {
va_end(va);
return status;
}
}
va_end(va);
return status;

View File

@ -332,8 +332,10 @@ int ft_nwrite(ft_table_t *table, size_t count, const char *cell_content, ...)
for (i = 0; i < count; ++i) {
const char *cell = va_arg(va, const char *);
status = ft_write_impl(table, cell);
if (FT_IS_ERROR(status))
if (FT_IS_ERROR(status)) {
va_end(va);
return status;
}
}
va_end(va);
return status;
@ -380,8 +382,10 @@ int ft_nwwrite(ft_table_t *table, size_t n, const wchar_t *cell_content, ...)
for (i = 0; i < n; ++i) {
const wchar_t *cell = va_arg(va, const wchar_t *);
status = ft_wwrite_impl(table, cell);
if (FT_IS_ERROR(status))
if (FT_IS_ERROR(status)) {
va_end(va);
return status;
}
}
va_end(va);
return status;