[glib: 3/11] Fix missing initializer warning in gio/gsubprocess.c:initable_init()




commit a93a6a5459c16d80e0c7d7cdacf0122b1a0a10f4
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Tue Nov 17 00:50:41 2020 +0100

    Fix missing initializer warning in gio/gsubprocess.c:initable_init()
    
    gio/gsubprocess.c: In function ‘initable_init’:
    gio/gsubprocess.c:454:3: error: missing initializer for field ‘child_setup_data’ of ‘ChildData’
      454 |   ChildData child_data = { { -1, -1, -1 }, 0 };
          |   ^~~~~~~~~

 gio/gsubprocess.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gsubprocess.c b/gio/gsubprocess.c
index a18ed73c1..2ff8457df 100644
--- a/gio/gsubprocess.c
+++ b/gio/gsubprocess.c
@@ -451,7 +451,7 @@ initable_init (GInitable     *initable,
 {
   GSubprocess *self = G_SUBPROCESS (initable);
 #ifdef G_OS_UNIX
-  ChildData child_data = { { -1, -1, -1 }, 0 };
+  ChildData child_data = { { -1, -1, -1 }, 0, NULL, NULL, NULL };
 #endif
   gint *pipe_ptrs[3] = { NULL, NULL, NULL };
   gint pipe_fds[3] = { -1, -1, -1 };


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