Skip to content

Commit 9dacc4a

Browse files
sunzhonghua2004lijinxia
authored andcommitted
tools:acrn-crashlog:fix potential issue
this patch fix potential issue of initialization about local variable in fsutils.c Tracked-On: #1024 Signed-off-by: Zhonghua <zhonghua.sun@intel.com> Reviewed-by: Huang, Yonghua <yonghua.huang@intel.com> Acked-by: Chen, Gang <gang.c.chen@intel.com>
1 parent 6971cc8 commit 9dacc4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/acrn-crashlog/common/fsutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ int find_file(const char *dir, size_t dlen, const char *target_file,
10141014

10151015
int read_file(const char *path, unsigned long *size, void **data)
10161016
{
1017-
char tmp[1024] = "\0";
1017+
char tmp[1024];
10181018
int len = 0;
10191019
int fd = 0;
10201020
int memsize = 1; /* for '\0' */

0 commit comments

Comments
 (0)