[pygobject/invoke-rewrite] [gi-invoke-ng] do not allocate null terminator for garray
- From: John Palmieri <johnp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/invoke-rewrite] [gi-invoke-ng] do not allocate null terminator for garray
- Date: Thu, 26 May 2011 17:24:54 +0000 (UTC)
commit e9ad4428b769f8c9ace1cdc973c684de84fb1a5e
Author: John (J5) Palmieri <johnp redhat com>
Date: Thu May 26 13:22:38 2011 -0400
[gi-invoke-ng] do not allocate null terminator for garray
* We are simply setting our own array so we don't want any allocate null byte
gi/pygi-marshal.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/pygi-marshal.c b/gi/pygi-marshal.c
index 8b9a715..1808f9f 100644
--- a/gi/pygi-marshal.c
+++ b/gi/pygi-marshal.c
@@ -1608,7 +1608,7 @@ _pygi_marshal_out_array (PyGIInvokeState *state,
len = len_arg->v_long;
}
- array_ = g_array_new (seq_cache->is_zero_terminated,
+ array_ = g_array_new (FALSE,
FALSE,
seq_cache->item_size);
if (array_ == NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]