From 2d02f10396d3bea8487386168ea40e314f78a6af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E9=A3=8E?= Date: Mon, 14 Oct 2013 11:26:15 +0800 Subject: [PATCH] bugfix: issue #46 --- service-src/databuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service-src/databuffer.h b/service-src/databuffer.h index b4b7783a..ec2ca53f 100644 --- a/service-src/databuffer.h +++ b/service-src/databuffer.h @@ -104,8 +104,8 @@ databuffer_push(struct databuffer *db, struct messagepool *mp, void *data, int s temp[i].next = &temp[i+1]; } temp[MESSAGEPOOL-1].next = NULL; - mp->pool = mpl; mpl->next = mp->pool; + mp->pool = mpl; m = &temp[0]; mp->freelist = &temp[1]; }