1
0
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:
Sébastien Helleu
2018-05-20 16:19:26 +02:00
parent dc6ad7b501
commit ef1ed1535c
+1 -1
View File
@@ -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)