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 };
      |   ^~~~~~~~~
This commit is contained in:
Emmanuel Fleury 2020-11-17 00:50:41 +01:00
parent be2df3f8b2
commit a93a6a5459

View File

@ -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 };