[F] Fixed cppcheck warning
This commit is contained in:
parent
354aec6eec
commit
9327d80d62
@ -3523,8 +3523,8 @@ void destroy_row(fort_row_t *row)
|
|||||||
if (row == NULL)
|
if (row == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
size_t i = 0;
|
|
||||||
if (row->cells) {
|
if (row->cells) {
|
||||||
|
size_t i = 0;
|
||||||
size_t cells_n = vector_size(row->cells);
|
size_t cells_n = vector_size(row->cells);
|
||||||
for (i = 0; i < cells_n; ++i) {
|
for (i = 0; i < cells_n; ++i) {
|
||||||
fort_cell_t *cell = *(fort_cell_t **)vector_at(row->cells, i);
|
fort_cell_t *cell = *(fort_cell_t **)vector_at(row->cells, i);
|
||||||
|
@ -37,8 +37,8 @@ void destroy_row(fort_row_t *row)
|
|||||||
if (row == NULL)
|
if (row == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
size_t i = 0;
|
|
||||||
if (row->cells) {
|
if (row->cells) {
|
||||||
|
size_t i = 0;
|
||||||
size_t cells_n = vector_size(row->cells);
|
size_t cells_n = vector_size(row->cells);
|
||||||
for (i = 0; i < cells_n; ++i) {
|
for (i = 0; i < cells_n; ++i) {
|
||||||
fort_cell_t *cell = *(fort_cell_t **)vector_at(row->cells, i);
|
fort_cell_t *cell = *(fort_cell_t **)vector_at(row->cells, i);
|
||||||
|
Loading…
Reference in New Issue
Block a user