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>
This commit is contained in:
zhonghua 2018-11-14 11:20:36 +08:00 committed by lijinxia
parent 6971cc832a
commit 9dacc4a57d
1 changed files with 1 additions and 1 deletions

View File

@ -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' */