summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaranjeiro2009-04-06 13:10:23 +0000
committerlaranjeiro2009-04-06 13:10:23 +0000
commit7304310305d1d2dab1aec7ffa3bec2d356441389 (patch)
treee5e4bc9199e114dbf4660afd04122598ede6b11d
parent7c0875d889f03fe6f6680d94aa871d794d88a65e (diff)
lib/mbox;
* the tail was not following the last message. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@4411 017c9cb6-072f-447c-8318-d5b54f68fe89
-rw-r--r--cesar/lib/src/mbox.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cesar/lib/src/mbox.c b/cesar/lib/src/mbox.c
index 32c76e4d3e..0f15add86e 100644
--- a/cesar/lib/src/mbox.c
+++ b/cesar/lib/src/mbox.c
@@ -87,10 +87,12 @@ mbox_put (mbox_t *ctx, mbox_node_t *msg)
dbg_assert (ctx);
dbg_assert (msg);
+ msg->next = NULL;
arch_dsr_lock ();
if (ctx->head)
{
ctx->tail->next = msg;
+ ctx->tail = msg;
}
else
{