1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +02:00

piped_process: silence spurious -Wmaybe-uninitialized warnings

libguile/posix.c: initialize pipes to silence spurious warnings.
This commit is contained in:
Rob Browning 2025-03-18 13:40:19 -05:00
parent aeb89f6ad6
commit 11b027d7e2

View file

@ -1523,8 +1523,8 @@ piped_process (pid_t *pid, SCM prog, SCM args, SCM from, SCM to)
#define FUNC_NAME "piped-process"
{
int reading, writing;
int c2p[2]; /* Child to parent. */
int p2c[2]; /* Parent to child. */
int c2p[2] = {0, 0}; /* Child to parent. */
int p2c[2] = {0, 0}; /* Parent to child. */
int in = -1, out = -1, err = -1;
char *exec_file;
char **exec_argv;