summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-batch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc/irc-batch.c')
-rw-r--r--src/plugins/irc/irc-batch.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/irc/irc-batch.c b/src/plugins/irc/irc-batch.c
index a2346f8d7..b3ed06e64 100644
--- a/src/plugins/irc/irc-batch.c
+++ b/src/plugins/irc/irc-batch.c
@@ -456,8 +456,7 @@ irc_batch_process_multiline (struct t_irc_server *server,
end:
weechat_hashtable_free (hash_tags);
- if (list_messages)
- weechat_string_free_split (list_messages);
+ weechat_string_free_split (list_messages);
return weechat_string_dyn_free (result, 0);
}
@@ -500,8 +499,7 @@ irc_batch_modifier_cb (const void *pointer, void *data,
result = irc_batch_process_multiline (ptr_server, string, items[2]);
}
}
- if (items)
- weechat_string_free_split (items);
+ weechat_string_free_split (items);
return (result) ? result : strdup (string);
}