coverity: Don't pass uninitialized var to write

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Stéphane Graber 2014-02-14 16:20:17 -05:00
parent 71b2940d87
commit 9f3d75a0ca

View File

@ -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);
}