[F] Fixed cppcheck warning

This commit is contained in:
seleznevae 2018-12-04 23:15:06 +03:00
parent 354aec6eec
commit 9327d80d62
2 changed files with 2 additions and 2 deletions

View File

@ -3523,8 +3523,8 @@ void destroy_row(fort_row_t *row)
if (row == NULL)
return;
size_t i = 0;
if (row->cells) {
size_t i = 0;
size_t cells_n = vector_size(row->cells);
for (i = 0; i < cells_n; ++i) {
fort_cell_t *cell = *(fort_cell_t **)vector_at(row->cells, i);

View File

@ -37,8 +37,8 @@ void destroy_row(fort_row_t *row)
if (row == NULL)
return;
size_t i = 0;
if (row->cells) {
size_t i = 0;
size_t cells_n = vector_size(row->cells);
for (i = 0; i < cells_n; ++i) {
fort_cell_t *cell = *(fort_cell_t **)vector_at(row->cells, i);