format-table: make sure we never call memcmp() with NULL parameters

This commit is contained in:
Lennart Poettering 2018-11-14 18:39:37 +01:00
parent 62d99b3970
commit 88db94fa57
1 changed files with 1 additions and 1 deletions

View File

@ -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(