aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-03-06 19:51:52 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-06 19:51:52 +0800
commit3e93782be91d774297b571ebcde221bf96f47cf5 (patch)
tree5c4a527fd78322cc30f3c7783b847bfd807072d2
parentac7f37a84c939f28e9654f81124f13525129e975 (diff)
downloadgsoc2013-empathy-3e93782be91d774297b571ebcde221bf96f47cf5.tar
gsoc2013-empathy-3e93782be91d774297b571ebcde221bf96f47cf5.tar.gz
gsoc2013-empathy-3e93782be91d774297b571ebcde221bf96f47cf5.tar.bz2
gsoc2013-empathy-3e93782be91d774297b571ebcde221bf96f47cf5.tar.lz
gsoc2013-empathy-3e93782be91d774297b571ebcde221bf96f47cf5.tar.xz
gsoc2013-empathy-3e93782be91d774297b571ebcde221bf96f47cf5.tar.zst
gsoc2013-empathy-3e93782be91d774297b571ebcde221bf96f47cf5.zip
Use g_list_concat even if the current GList is empty (NULL).
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2588
-rw-r--r--libempathy/empathy-log-manager.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/libempathy/empathy-log-manager.c b/libempathy/empathy-log-manager.c
index 2a1259659..46463733f 100644
--- a/libempathy/empathy-log-manager.c
+++ b/libempathy/empathy-log-manager.c
@@ -236,12 +236,8 @@ empathy_log_manager_get_messages_for_date (EmpathyLogManager *manager,
{
EmpathyLogSource *source = EMPATHY_LOG_SOURCE (l->data);
- if (!out)
- out = empathy_log_source_get_messages_for_date (source, account,
- chat_id, chatroom, date);
- else
- out = g_list_concat (out, empathy_log_source_get_messages_for_date (
- source, account, chat_id, chatroom, date));
+ out = g_list_concat (out, empathy_log_source_get_messages_for_date (
+ source, account, chat_id, chatroom, date));
}
return out;
@@ -290,11 +286,8 @@ empathy_log_manager_get_chats (EmpathyLogManager *manager,
{
EmpathyLogSource *source = EMPATHY_LOG_SOURCE (l->data);
- if (!out)
- out = empathy_log_source_get_chats (source, account);
- else
- out = g_list_concat (out,
- empathy_log_source_get_chats (source, account));
+ out = g_list_concat (out,
+ empathy_log_source_get_chats (source, account));
}
return out;
@@ -316,11 +309,8 @@ empathy_log_manager_search_new (EmpathyLogManager *manager,
{
EmpathyLogSource *source = EMPATHY_LOG_SOURCE (l->data);
- if (!out)
- out = empathy_log_source_search_new (source, text);
- else
- out = g_list_concat (out,
- empathy_log_source_search_new (source, text));
+ out = g_list_concat (out,
+ empathy_log_source_search_new (source, text));
}
return out;