1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-22 06:50:18 +03:00

Update catalog.c - Removing sanity check as there is no need of checking non null pointer (#31653)

There is no need to check the pointer as the pointer will never be NULL.

Co-authored-by: Frantisek Sumsal <frantisek@sumsal.cz>
This commit is contained in:
SidhuRupinder 2024-03-07 07:01:59 +05:30 committed by GitHub
parent 6d1321c328
commit 6ad20da18a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -618,8 +618,7 @@ int catalog_get(const char* database, sd_id128_t id, char **_text) {
r = 0;
finish:
if (p)
munmap(p, st.st_size);
(void) munmap(p, st.st_size);
return r;
}