[glib] gobject/gclosure.c: Made up for missed pointer deref
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gobject/gclosure.c: Made up for missed pointer deref
- Date: Thu, 6 Oct 2011 07:24:14 +0000 (UTC)
commit d792a1ebe445cfab942ee9e079daa3b87bd60304
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Oct 6 15:24:08 2011 +0800
gobject/gclosure.c: Made up for missed pointer deref
The value parameter is a gpointer * (void **), but ffi_arg itself is not a
pointer type, so make up for dereference here.
gobject/gclosure.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gobject/gclosure.c b/gobject/gclosure.c
index 6893484..e904ca4 100644
--- a/gobject/gclosure.c
+++ b/gobject/gclosure.c
@@ -1032,7 +1032,7 @@ value_to_ffi_type (const GValue *gvalue,
static void
value_from_ffi_type (GValue *gvalue, gpointer *value)
{
- ffi_arg *int_val = value;
+ ffi_arg *int_val = *value;
switch (g_type_fundamental (G_VALUE_TYPE (gvalue)))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]