[evolution] MessageList: Remove unneeded condition in an 'if' statement
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] MessageList: Remove unneeded condition in an 'if' statement
- Date: Tue, 30 Aug 2022 11:50:24 +0000 (UTC)
commit 52ce3bcabd89e22b97a8cf152f5a5145ba235168
Author: Milan Crha <mcrha redhat com>
Date: Tue Aug 30 12:47:32 2022 +0200
MessageList: Remove unneeded condition in an 'if' statement
Compilers can claim the condition is unneeded, because the variable
is never NULL.
src/mail/message-list.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/mail/message-list.c b/src/mail/message-list.c
index 1da5b812d3..df15616bcf 100644
--- a/src/mail/message-list.c
+++ b/src/mail/message-list.c
@@ -2164,7 +2164,7 @@ ml_tree_value_at_ex (ETreeModel *etm,
case COL_USER_HEADER_3: {
const gchar *name = NULL;
guint index = col - COL_USER_HEADER_1;
- if (message_list->priv->user_headers && index < message_list->priv->user_headers_count)
+ if (index < message_list->priv->user_headers_count)
name = message_list->priv->user_headers[index];
if (name && *name)
return (gpointer) camel_message_info_dup_user_header (msg_info, name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]