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:
Thomas Jarosch 2015-01-04 13:49:22 +01:00
parent 89ab3c2761
commit 404ebb8b0b

View file

@ -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);