[libgnome-keyring] [egg] Fix secure memory assertion.



commit 292cbcc5337e1334e2802563c3d9a245c74e2ce8
Author: Stef Walter <stef memberwebs com>
Date:   Sat Sep 11 23:41:11 2010 +0000

    [egg] Fix secure memory assertion.
    
    Fix assertion that occurs when searching for pool to free memory from.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=616175

 egg/egg-secure-memory.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/egg/egg-secure-memory.c b/egg/egg-secure-memory.c
index 81a2a32..2433ce6 100644
--- a/egg/egg-secure-memory.c
+++ b/egg/egg-secure-memory.c
@@ -237,7 +237,8 @@ pool_free (void* item)
 	}
 
 	/* Otherwise invalid meta */
-	ASSERT (pool && *at);
+	ASSERT (at);
+	ASSERT (pool);
 	ASSERT (pool->used > 0);
 
 	/* No more meta cells used in this block, remove from list, destroy */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]