changeset 502:3134b4960cdb

Fix mixed declaration and code
author Mikael Berthe <mikael@lilotux.net>
date Sun, 30 Oct 2005 12:09:32 +0200
parents 7c1ca00070e8
children ddec224c2318
files mcabber/src/hbuf.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/hbuf.c	Wed Oct 26 23:46:53 2005 +0200
+++ b/mcabber/src/hbuf.c	Sun Oct 30 12:09:32 2005 +0200
@@ -67,10 +67,11 @@
     hbuf_block_elt->ptr_end_alloc = hbuf_block_elt->ptr + HBB_BLOCKSIZE;
     *p_hbuf = g_list_append(*p_hbuf, hbuf_block_elt);
   } else {
+    hbuf_block *hbuf_b_prev;
     // Set p_hbuf to the end of the list, to speed up history loading
     // (or CPU time will be used by g_list_last() for each line)
     hbuf = *p_hbuf = g_list_last(*p_hbuf);
-    hbuf_block *hbuf_b_prev = hbuf->data;
+    hbuf_b_prev = hbuf->data;
     hbuf_block_elt->ptr    = hbuf_b_prev->ptr_end;
     hbuf_block_elt->flags  = HBB_FLAG_PERSISTENT;
     hbuf_block_elt->ptr_end_alloc = hbuf_b_prev->ptr_end_alloc;