Skip to content

Commit 9f44e82

Browse files
committed
container: initialize tmp_err
Signed-off-by: Giuseppe Scrivano <[email protected]>
1 parent 9cfaf98 commit 9f44e82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcrun/container.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2434,7 +2434,7 @@ libcrun_container_run (libcrun_context_t *context, libcrun_container_t *containe
24342434
int container_ret_status[2];
24352435
cleanup_close int pipefd0 = -1;
24362436
cleanup_close int pipefd1 = -1;
2437-
libcrun_error_t tmp_err;
2437+
libcrun_error_t tmp_err = NULL;
24382438

24392439
container->context = context;
24402440

@@ -2601,7 +2601,7 @@ libcrun_container_create (libcrun_context_t *context, libcrun_container_t *conta
26012601
{
26022602
if (exit_code != 0)
26032603
{
2604-
libcrun_error_t tmp_err;
2604+
libcrun_error_t tmp_err = NULL;
26052605
libcrun_container_delete (context, def, context->id, true, &tmp_err);
26062606
crun_error_release (err);
26072607
}

0 commit comments

Comments
 (0)