Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions fsw/src/fm_cmd_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,8 @@ CFE_Status_t FM_GetVolumeFreeSpace(const char *FileSys, uint64 *BlockCount, uint
osal_status_t OS_Status;
CFE_Status_t Result;

memset(&FileStats, 0, sizeof(FileStats));
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this only be meset to 0 on failure instead of all the time?


/* Get file system free space */
OS_Status = OS_FileSysStatVolume(FileSys, &FileStats);
if (OS_Status == OS_SUCCESS)
Expand Down
Loading