vppinfra: fix format_table coverity warning
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ida114ba35227f70ddd87cad791a21f186be1cba8
This commit is contained in:
Florin Coras
committed by
Damjan Marion
parent
57cc4bc4cc
commit
3b7003b58a
@ -52,7 +52,7 @@ format_text_cell (table_t *t, u8 *s, table_cell_t *c, table_text_attr_t *def,
|
|||||||
{
|
{
|
||||||
table_text_attr_t _a = {}, *a = &_a;
|
table_text_attr_t _a = {}, *a = &_a;
|
||||||
|
|
||||||
if (a == 0)
|
if (c == 0)
|
||||||
return format (s, t->no_ansi ? "" : "\x1b[0m");
|
return format (s, t->no_ansi ? "" : "\x1b[0m");
|
||||||
|
|
||||||
clib_memcpy (a, def, sizeof (table_text_attr_t));
|
clib_memcpy (a, def, sizeof (table_text_attr_t));
|
||||||
|
Reference in New Issue
Block a user