changeset 8199:94c751fa58e3 HEAD

Transaction view: One more try at really fixing lookup_ext()..
author Timo Sirainen <tss@iki.fi>
date Sat, 13 Sep 2008 14:09:59 +0300
parents b50faeeefb4c
children b0d72f3eaacd
files src/lib-index/mail-index-transaction-view.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index-transaction-view.c	Sat Sep 13 13:28:09 2008 +0300
+++ b/src/lib-index/mail-index-transaction-view.c	Sat Sep 13 14:09:59 2008 +0300
@@ -224,7 +224,7 @@
 		}
 	}
 
-	if (ext->record_align <= sizeof(uint32_t)) {
+	if (record_align <= sizeof(uint32_t)) {
 		/* data is 32bit aligned already */
 		return data;
 	} else {
@@ -233,10 +233,9 @@
 		if (tview->lookup_return_data == NULL) {
 			tview->lookup_return_data =
 				buffer_create_dynamic(default_pool,
-						      ext->record_size + 64);
+						      record_size + 64);
 		}
-		buffer_write(tview->lookup_return_data,
-			     0, data, ext->record_size);
+		buffer_write(tview->lookup_return_data, 0, data, record_size);
 		return tview->lookup_return_data->data;
 	}
 }