1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-13 17:18:18 +03:00

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

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(