Commit 9f3d75a0 by Stéphane Graber

coverity: Don't pass uninitialized var to write

parent 71b2940d
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment