summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2011-03-21 14:39:21 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2011-03-21 14:39:21 -0400
commit81abdb2bf7221f806f2f38a53f372ac257a74843 (patch)
treef809e4c5abd2f04701c3f532ccb59968067730ba
parent1ce4e6f91e31b4f77bbb7c33addc771d73464e09 (diff)
Fix use of unitialized TplPendingMessage pointer
-rw-r--r--telepathy-logger/text-channel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/telepathy-logger/text-channel.c b/telepathy-logger/text-channel.c
index 279385b..a9523bf 100644
--- a/telepathy-logger/text-channel.c
+++ b/telepathy-logger/text-channel.c
@@ -578,6 +578,8 @@ pendingproc_store_pending_messages (TplActionChain *ctx,
continue;
}
+ cached = cached_it->data;
+
if (pending_it == NULL)
{
/* No more pending, just remove the cached messages */
@@ -586,7 +588,6 @@ pendingproc_store_pending_messages (TplActionChain *ctx,
continue;
}
- cached = cached_it->data;
pending = pending_it->data;
pending_id = get_message_pending_id (TP_MESSAGE (pending));
pending_ts = get_message_timestamp (TP_MESSAGE (pending));