[pygobject/gsoc2009: 119/160] Initialize args_is_auxiliary to 0
- From: Simon van der Linden <svdlinden src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pygobject/gsoc2009: 119/160] Initialize args_is_auxiliary to 0
- Date: Fri, 14 Aug 2009 21:33:44 +0000 (UTC)
commit 2830d1f5689560b534d21a306b834c43ad0287f5
Author: Simon van der Linden <svdlinden src gnome org>
Date: Thu Aug 6 15:22:22 2009 +0200
Initialize args_is_auxiliary to 0
Fix a bug where only the first bytes of args_is_auxiliary where set to 0.
gi/pygi-info.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/pygi-info.c b/gi/pygi-info.c
index 1d96b20..937fcc0 100644
--- a/gi/pygi-info.c
+++ b/gi/pygi-info.c
@@ -323,7 +323,7 @@ _wrap_g_function_info_invoke (PyGIBaseInfo *self,
arg_type_infos = g_newa(GITypeInfo *, n_args);
args_is_auxiliary = g_newa(gboolean, n_args);
- memset(args_is_auxiliary, 0, sizeof(args_is_auxiliary));
+ memset(args_is_auxiliary, 0, sizeof(args_is_auxiliary) * n_args);
if (is_method) {
/* The first argument is the instance. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]