1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-09 13:57:42 +03:00

shared: fix comment

Follow-up for 90db1582a97d048769198ee1c0f367d003eeb130.
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;