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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user