[gnome-keyring] [library] Use glib memory routines to explicitly allocate memory.



commit fac01200abc986ff73e4928d7be8f1e61905f424
Author: Stef Walter <stef memberwebs com>
Date:   Sun Sep 13 16:23:51 2009 +0000

    [library] Use glib memory routines to explicitly allocate memory.
    
    In some cases there could be a difference between the glibc, and glib
    routines. This may have been the cause of bug #588443.

 library/gnome-keyring-proto.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/library/gnome-keyring-proto.c b/library/gnome-keyring-proto.c
index af3c5e2..06f9266 100644
--- a/library/gnome-keyring-proto.c
+++ b/library/gnome-keyring-proto.c
@@ -1481,7 +1481,7 @@ gkr_proto_decode_prepare_environment_reply (EggBuffer *buffer, GnomeKeyringResul
 	*result = res;
 
 	if (res == GNOME_KEYRING_RESULT_OK) {
-		if (!egg_buffer_get_stringv (buffer, offset, &offset, environment, NULL))
+		if (!egg_buffer_get_stringv (buffer, offset, &offset, environment, g_realloc))
 			return FALSE; 
 	}		
 	



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