[gobject-introspection/ebassi/issue-319: 10/13] Initialise argument
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gobject-introspection/ebassi/issue-319: 10/13] Initialise argument
- Date: Thu, 24 Jun 2021 18:17:57 +0000 (UTC)
commit e3f02be1f372449b66cebf4edec868b3c8be8698
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]