Skip to content

Commit a9affe5

Browse files
committed
status: fix error check
Signed-off-by: Giuseppe Scrivano <[email protected]>
1 parent f5f267c commit a9affe5

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)