mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
zdtm/cgroup_stray: fix uninitialized variable
51.04 DEP cgroup_stray.d
51.07 CC cgroup_stray.o
51.11 cgroup_stray.c:164:18: error: variable 'c' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer]
51.11 164 | if (write(sk, &c, 1) != 1) {
51.11 | ^
51.11 1 error generated.
51.12 make[1]: *** [../Makefile.inc:96: cgroup_stray.o] Error 1
51.12 make[1]: Leaving directory '/criu/test/zdtm/static'
51.12 make: *** [Makefile:7: static] Error 2
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
974c1bc898
commit
2dd66866e3
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ out:
|
|||
int main(int argc, char **argv)
|
||||
{
|
||||
int ret = -1, sk_pair[2], sk, status;
|
||||
char path[PATH_MAX], c;
|
||||
char path[PATH_MAX], c = 0;
|
||||
pid_t pid = 0;
|
||||
|
||||
test_init(argc, argv);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue