mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
zdtm/tempfs_subns: fix uninitialized variable
DEP tempfs_subns.d
CC tempfs_subns.o
tempfs_subns.c:50:23: error: variable 'fd' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer]
50 | if (write(fds[1], &fd, sizeof(fd)) != sizeof(fd)) {
| ^~
1 error generated.
make[1]: *** [../Makefile.inc:96: tempfs_subns.o] Error 1
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
b1a51489dd
commit
974c1bc898
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ int main(int argc, char **argv)
|
|||
{
|
||||
int fds[2], i;
|
||||
pid_t pid;
|
||||
int fd, status;
|
||||
int status, fd = -1;
|
||||
|
||||
test_init(argc, argv);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue