chiark / gitweb /
prefork-interp: Fix an uninitialised variable
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 11 Aug 2022 17:53:44 +0000 (18:53 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Aug 2022 20:21:10 +0000 (21:21 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
cprogs/prefork-interp.c

index 4e044a26c46a12f85946534fb52fea716fc5499b..2215ded6dc776668d3b7c873ef017455ac5a40b7 100644 (file)
@@ -265,7 +265,7 @@ static bool was_eof(FILE *call_sock) {
 static FILE *connect_existing(void) {
   int r;
   int fd = -1;
-  FILE *call_sock;
+  FILE *call_sock = 0;
 
   fd = socket(AF_UNIX, SOCK_STREAM, 0);
   if (fd==-1) diee("socket() for client");