aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-10-12 08:45:46 -0700
committerDamjan Marion <dmarion@me.com>2021-10-13 14:30:14 +0000
commit3b7003b58a8519cc49c17e9883d418c0fb5db9fa (patch)
treec867b04db5af3f856dca92ec7c61227a2174bd57 /src/vppinfra
parent57cc4bc4ccba635fe5b125d59dc563cd7718413a (diff)
vppinfra: fix format_table coverity warning
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ida114ba35227f70ddd87cad791a21f186be1cba8
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/format_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/format_table.c b/src/vppinfra/format_table.c
index b698cfdcc56..8b218f5f2e1 100644
--- a/src/vppinfra/format_table.c
+++ b/src/vppinfra/format_table.c
@@ -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;
- if (a == 0)
+ if (c == 0)
return format (s, t->no_ansi ? "" : "\x1b[0m");
clib_memcpy (a, def, sizeof (table_text_attr_t));