1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: check that hdata and name are not NULL in function hdata_compare

This commit is contained in:
Sébastien Helleu
2021-11-02 21:08:24 +01:00
parent f66e55564e
commit d8a3a0137c
+3
View File
@@ -896,6 +896,9 @@ hdata_compare (struct t_hdata *hdata, void *pointer1, void *pointer2,
void *ptr_value1, *ptr_value2;
time_t time_value1, time_value2;
if (!hdata || !name)
return 0;
if (!pointer1 && pointer2)
return -1;
if (pointer1 && !pointer2)