format-table: make sure we never call memcmp() with NULL parameters
This commit is contained in:
parent
62d99b3970
commit
88db94fa57
|
@ -275,7 +275,7 @@ static bool table_data_matches(
|
|||
if (k != l)
|
||||
return false;
|
||||
|
||||
return memcmp(data, d->data, l) == 0;
|
||||
return memcmp_safe(data, d->data, l) == 0;
|
||||
}
|
||||
|
||||
static TableData *table_data_new(
|
||||
|
|
Loading…
Reference in New Issue