rlb pushed a commit to branch main
in repository guile.

commit 11b027d7e22fcd76566716f40c20cff0784b076a
Author: Rob Browning <r...@defaultvalue.org>
AuthorDate: Tue Mar 18 13:40:19 2025 -0500

    piped_process: silence spurious -Wmaybe-uninitialized warnings
    
    libguile/posix.c: initialize pipes to silence spurious warnings.
---
 libguile/posix.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libguile/posix.c b/libguile/posix.c
index dde77b8ee..7cd80ed76 100644
--- a/libguile/posix.c
+++ b/libguile/posix.c
@@ -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;

Reply via email to