[gjs] arg: Fix uninitialized pointer



commit c2c92299177d12382f14655e689c6c6ddb8591d6
Author: Pavel Vasin <rat4vier gmail com>
Date:   Thu Nov 29 17:30:25 2012 +0400

    arg: Fix uninitialized pointer
    
    https://bugzilla.gnome.org/show_bug.cgi?id=689284

 gi/arg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/arg.c b/gi/arg.c
index 62e5db3..ceac621 100644
--- a/gi/arg.c
+++ b/gi/arg.c
@@ -1632,7 +1632,7 @@ gjs_value_to_g_argument(JSContext      *context,
                     break;
                 } else if (array_type == GI_ARRAY_TYPE_C && 
                            (element_type == GI_TYPE_TAG_UINT8 || element_type == GI_TYPE_TAG_INT8)) {
-                    gjs_byte_array_peek_data(context, bytearray_obj, data, &length);
+                    gjs_byte_array_peek_data(context, bytearray_obj, (guint8**) &data, &length);
                     bytearray_fastpath = TRUE;
                 } else {
                     /* Fall through, !handled */



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