From 9f3d75a0ca34c78f94227a59905fbd7b59355826 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Graber?= Date: Fri, 14 Feb 2014 16:20:17 -0500 Subject: [PATCH] coverity: Don't pass uninitialized var to write MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber Acked-by: Serge E. Hallyn --- src/tests/locktests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/locktests.c b/src/tests/locktests.c index 2d04052a2..dd3393a89 100644 --- a/src/tests/locktests.c +++ b/src/tests/locktests.c @@ -66,7 +66,7 @@ static void test_two_locks(void) fprintf(stderr, "%d; failed to get lock\n", __LINE__); exit(1); } - if (write(p[1], &c, 1) < 0) { + if (write(p[1], "a", 1) < 0) { perror("write"); exit(1); } -- 2.47.2