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




commit e3824057e6de9f90816fd8ec03e7dcb4407a0d62
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]