mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 14:56:39 +02:00
core: return an error if the infolist has no pointer to current item in function hashtable_add_from_infolist
This commit is contained in:
@@ -1120,7 +1120,7 @@ hashtable_add_from_infolist (struct t_hashtable *hashtable,
|
||||
char prefix_name[128], option_value[128];
|
||||
int prefix_length;
|
||||
|
||||
if (!hashtable || !infolist || !prefix)
|
||||
if (!hashtable || !infolist || !infolist->ptr_item || !prefix)
|
||||
return 0;
|
||||
|
||||
if (hashtable->type_keys != HASHTABLE_STRING)
|
||||
|
||||
Reference in New Issue
Block a user