Skip to content

Commit 6dfbacd

Browse files
MaisenbacherDigaw
authored andcommitted
nvme: get_telemetry_log initialize total_size
Initialize total_size to resolve compiler warning of potential uninitialized use of variable. Signed-off-by: Dennis Maisenbacher <[email protected]>
1 parent 21582a9 commit 6dfbacd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nvme.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ static int get_telemetry_log(int argc, char **argv, struct command *cmd,
821821
_cleanup_nvme_link_ nvme_link_t l = NULL;
822822
_cleanup_fd_ int output = -1;
823823
int err = 0;
824-
size_t total_size;
824+
size_t total_size = 0;
825825
__u8 *data_ptr = NULL;
826826
int data_written = 0, data_remaining = 0;
827827
nvme_print_flags_t flags;

0 commit comments

Comments
 (0)