Skip to content

Commit fa8f56e

Browse files
authored
Merge pull request #1867 from giuseppe/fix-error-check-status
status: fix error check
2 parents f5f267c + a9affe5 commit fa8f56e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcrun/status.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ libcrun_write_container_status (const char *state_root, const char *id, libcrun_
349349
goto yajl_error;
350350

351351
ret = safe_write (fd_write, "status file", buf, len, err);
352-
if (UNLIKELY (r < 0))
352+
if (UNLIKELY (ret < 0))
353353
goto exit;
354354

355355
close_and_reset (&fd_write);

0 commit comments

Comments
 (0)