mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-07 20:24:09 +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__);
|
fprintf(stderr, "%d; failed to get lock\n", __LINE__);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
if (write(p[1], &c, 1) < 0) {
|
if (write(p[1], "a", 1) < 0) {
|
||||||
perror("write");
|
perror("write");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user