Skip to content

Commit

Permalink
nvme: fix uninitialized value in error-log
Browse files Browse the repository at this point in the history
Valgrind complained about an "uninitialized value created by a
stack allocation" error while running the error-log command.
Fix the same.

Signed-off-by: Martin George <[email protected]>
  • Loading branch information
martin-gpy committed Sep 22, 2024
1 parent dd59efc commit e371d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ static int get_error_log(int argc, char **argv, struct command *cmd, struct plug

_cleanup_free_ struct nvme_error_log_page *err_log = NULL;
_cleanup_nvme_dev_ struct nvme_dev *dev = NULL;
struct nvme_id_ctrl ctrl;
struct nvme_id_ctrl ctrl = { 0 };
nvme_print_flags_t flags;
int err = -1;

Expand Down

0 comments on commit e371d2a

Please sign in to comment.