[evolution-exchange/gnome-2-30] [win32] Pass the correct pointer to ber_flatten
- From: Fridrich Strba <strba src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-exchange/gnome-2-30] [win32] Pass the correct pointer to ber_flatten
- Date: Wed, 28 Apr 2010 22:49:58 +0000 (UTC)
commit 6ac058429b75507551aa7d8b567dc1b8cfc301b5
Author: Fridrich Å trba <fridrich strba bluewin ch>
Date: Thu Apr 29 00:48:40 2010 +0200
[win32] Pass the correct pointer to ber_flatten
addressbook/e-book-backend-gal.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/e-book-backend-gal.c b/addressbook/e-book-backend-gal.c
index b8e3dfd..0a971fc 100644
--- a/addressbook/e-book-backend-gal.c
+++ b/addressbook/e-book-backend-gal.c
@@ -2244,16 +2244,20 @@ getNextPage:
i = 0;
if (pagedResults) {
+ struct berval **tmpBVPtr = NULL;
if (( prber = ber_alloc_t(LBER_USE_DER)) == NULL ) {
return;
}
ber_printf( prber, "{iO}", pageSize, &cookie );
#ifdef G_OS_WIN32
- if ( ber_flatten( prber, &c[i].ldctl_value ) == -1 ) {
+ if ( ber_flatten( prber, tmpBVPtr) == -1 ) {
ber_free( prber, 1 );
+ ber_bvfree(*tmpBVPtr);
return;
}
+ c[i].ldctl_value = **tmpBVPtr;
ber_free( prber, 1 );
+ ber_bvfree(*tmpBVPtr);
#else
if ( ber_flatten2( prber, &c[i].ldctl_value, 0 ) == -1 ) {
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]