Skip to content

Commit 2e0d280

Browse files
committed
Fix more clang check
Signed-off-by: Sourav Moitra <[email protected]>
1 parent 189b378 commit 2e0d280

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libcrun/container.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3106,7 +3106,6 @@ libcrun_container_state (libcrun_context_t *context, const char *id, FILE *out,
31063106
libcrun_container_status_t status = {};
31073107
const char *state_root = context->state_root;
31083108
const char *container_status = NULL;
3109-
json_t *root;
31103109
char *buf;
31113110
int r = 0;
31123111
int running;
@@ -3120,7 +3119,7 @@ libcrun_container_state (libcrun_context_t *context, const char *id, FILE *out,
31203119
goto exit;
31213120

31223121
r = 0;
3123-
root = json_object();
3122+
json_t *root = json_object();
31243123
if (root == NULL)
31253124
return crun_make_error (err, 0, "json_objectfailed");
31263125

0 commit comments

Comments
 (0)