shared: fix comment

Follow-up for 90db1582a9.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2024-05-08 12:40:31 +02:00
parent 3ea527d33c
commit 0ca9c2c9b8

View file

@ -919,8 +919,8 @@ int bus_message_read_id128(sd_bus_message *m, sd_id128_t *ret) {
case sizeof(sd_id128_t):
if (ret)
memcpy(ret, a, sz);
return !memeqzero(a, sz); /* This intends to sd_id128_is_null(), but ret may be NULL, so
* let'suse memeqzero() here. */
return !memeqzero(a, sz); /* This mimics sd_id128_is_null(), but ret may be NULL,
* and a may be misaligned, so use memeqzero() here. */
default:
return -EINVAL;