From 899bceac31408d542ca0c4e1019b35c0ad711f12 Mon Sep 17 00:00:00 2001 From: Jihoon Jung Date: Fri, 18 Jun 2021 13:50:05 +0900 Subject: [PATCH] Fix coverity issue Change-Id: I8fda391f92ea87c327745b135e648b545310c391 Signed-off-by: Jihoon Jung --- src/mtp_cmd_handler_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mtp_cmd_handler_util.c b/src/mtp_cmd_handler_util.c index a63488e..ac4b80e 100644 --- a/src/mtp_cmd_handler_util.c +++ b/src/mtp_cmd_handler_util.c @@ -1155,7 +1155,7 @@ mtp_err_t _hutil_read_file_data_from_offset(mtp_uint32 obj_handle, off_t offset, mtp_obj_t *obj = NULL; FILE* h_file = NULL; mtp_int32 error = 0; - mtp_char fname[MTP_MAX_PATHNAME_SIZE + 1]; + mtp_char fname[MTP_MAX_PATHNAME_SIZE + 1] = {0,}; off_t result = 0; mtp_uint32 num_bytes; -- 2.7.4