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

This commit is contained in:
Lennart Poettering
2018-11-30 16:46:10 +01:00
parent 62d99b3970
commit 88db94fa57
+1 -1
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(