From 9dacc4a57d3ed10b1bc5776fcf0a83a4fd235a1c Mon Sep 17 00:00:00 2001 From: zhonghua Date: Wed, 14 Nov 2018 11:20:36 +0800 Subject: [PATCH] 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 Reviewed-by: Huang, Yonghua Acked-by: Chen, Gang --- tools/acrn-crashlog/common/fsutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/acrn-crashlog/common/fsutils.c b/tools/acrn-crashlog/common/fsutils.c index 27b782a57..c2317dd36 100644 --- a/tools/acrn-crashlog/common/fsutils.c +++ b/tools/acrn-crashlog/common/fsutils.c @@ -1014,7 +1014,7 @@ fail_open: int read_file(const char *path, unsigned long *size, void **data) { - char tmp[1024] = "\0"; + char tmp[1024]; int len = 0; int fd = 0; int memsize = 1; /* for '\0' */