There are still 5 reports from clang analyzer. They are either false positives or (in the test code) 'easy-to-read' programming by purpose (easy to get rid of, but absolutely no need to do). Tim
From 5e8bd25a38ffb4b72ab85b6c855720bd9e35ec04 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tim RÃhsen?= <tim.ruehsen@xxxxxx>
Date: Fri, 23 Jan 2015 11:01:42 +0100
Subject: [PATCH] Fix clang report: Result of operation is garbage or undefined
---
tests/test_fd_passing.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_fd_passing.c b/tests/test_fd_passing.c
index f4950bd..b4786b8 100644
--- a/tests/test_fd_passing.c
+++ b/tests/test_fd_passing.c
@@ -387,7 +387,7 @@ error:
static void *thread_send(void *data)
{
- int sock, fds[3], pipe_fds[2];
+ int sock, fds[3], pipe_fds[2] = { -1, -1 };
ssize_t len;
sock = connect_unix_sock(sockpath);
--
2.1.4
Attachment:
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ tor-dev mailing list tor-dev@xxxxxxxxxxxxxxxxxxxx https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev