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 10:31:59 +09:00
committed by GitHub
co-authored by Frantisek Sumsal
parent 6d1321c328
commit 6ad20da18a
+1 -2
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;
}