hosted target: Fix uninitialized variable in dirinfo.attribute
cppcheck reported: [rockbox/firmware/target/hosted/filesystem-app.c:509]: (error) Uninitialized struct member: ret.attribute [rockbox/firmware/target/hosted/filesystem-app.c:517]: (error) Uninitialized struct member: ret.attribute Change-Id: Ie8cab727faa8110a6fe3926dbcf852e8b9e96ca7
This commit is contained in:
parent
89ab3c2761
commit
404ebb8b0b
1 changed files with 2 additions and 1 deletions
|
@ -474,7 +474,8 @@ bool app_dir_exists(const char *dirname)
|
|||
struct dirinfo dir_get_info(DIR *dirp, struct dirent *entry)
|
||||
{
|
||||
struct __dir *this = (struct __dir *)dirp;
|
||||
struct dirinfo ret = { .mtime = 0 };
|
||||
struct dirinfo ret = { .attribute = 0,
|
||||
.mtime = 0 };
|
||||
|
||||
if (!this)
|
||||
FILE_ERROR_RETURN(EBADF, ret);
|
||||
|
|
Loading…
Reference in a new issue