[gjs] Fix unitialized return value



commit 9000e5184bcabf7e97d3cf75082cf4bac0eed1e8
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Tue Sep 14 13:52:39 2010 -0400

    Fix unitialized return value
    
    When throwing because only null-terminated arrays are supported, the
    return value was unitialized memory.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=629693

 gi/arg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gi/arg.c b/gi/arg.c
index ea587e9..c91199e 100644
--- a/gi/arg.c
+++ b/gi/arg.c
@@ -1792,6 +1792,7 @@ gjs_value_from_g_argument (JSContext  *context,
                                                  arg->v_pointer);
                 } else {
                     gjs_throw(context, "FIXME: Only supporting null-terminated arrays of strings");
+                    result = FALSE;
                 }
 
                 g_base_info_unref((GIBaseInfo*) param_info);



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