From: Stéphane Graber Date: Fri, 14 Feb 2014 21:20:17 +0000 (-0500) Subject: coverity: Don't pass uninitialized var to write X-Git-Tag: lxc-1.0.0.rc2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f3d75a0ca34c78f94227a59905fbd7b59355826;p=thirdparty%2Flxc.git coverity: Don't pass uninitialized var to write Signed-off-by: Stéphane Graber Acked-by: Serge E. Hallyn --- 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); }