mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-22 13:37:10 +00:00
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:
parent
6971cc832a
commit
9dacc4a57d
@ -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' */
|
||||
|
Loading…
Reference in New Issue
Block a user