1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-23 06:35:36 +00:00

Merge pull request #1274 from ailin-nemui/tags-heap

skip parsing empty tags
This commit is contained in:
ailin-nemui 2021-02-26 20:40:03 +01:00 committed by GitHub
commit 73e73df1c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -433,6 +433,8 @@ GHashTable *irc_parse_message_tags(const char *tags)
(GDestroyNotify) i_refstr_release, (GDestroyNotify) g_free);
split = g_strsplit(tags, ";", -1);
for (tmp = split; *tmp != NULL; tmp++) {
if (*tmp[0] == '\0')
continue;
kv = g_strsplit(*tmp, "=", 2);
unescape_tag(kv[1]);
g_hash_table_replace(hash, i_refstr_intern(kv[0]),