mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-03 07:23:23 +00:00
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:
parent
71b2940d87
commit
9f3d75a0ca
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user