[gobject-introspection/ebassi/issue-319: 6/6] Initialise argument




commit f2a288d6422dee65465d6c2283d85aea861abafe
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Jun 2 12:39:00 2021 +0100

    Initialise argument
    
    Avoid a "maybe uninitialized" compiler warning.

 girepository/ginvoke.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/girepository/ginvoke.c b/girepository/ginvoke.c
index f7e64493..5d423b1e 100644
--- a/girepository/ginvoke.c
+++ b/girepository/ginvoke.c
@@ -251,7 +251,7 @@ gi_cclosure_marshal_generic (GClosure *closure,
                              gpointer invocation_hint,
                              gpointer marshal_data)
 {
-  GIArgument return_ffi_value;
+  GIArgument return_ffi_value = { 0, };
   ffi_type *rtype;
   void *rvalue;
   int n_args;


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