From eb8c99e7c6466039dddd315b75f2ac9e73a54093 Mon Sep 17 00:00:00 2001 From: Jacob Hageman Date: Mon, 17 Jul 2023 15:53:44 +0000 Subject: [PATCH] Fix #109, Uninitialized FileStats in FM_GetVolumeFreeSpace --- fsw/src/fm_cmd_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsw/src/fm_cmd_utils.c b/fsw/src/fm_cmd_utils.c index 534e537..4b018bc 100644 --- a/fsw/src/fm_cmd_utils.c +++ b/fsw/src/fm_cmd_utils.c @@ -533,7 +533,7 @@ void FM_AppendPathSep(char *Directory, uint32 BufferSize) CFE_Status_t FM_GetVolumeFreeSpace(const char *FileSys, uint64 *BlockCount, uint64 *ByteCount) { - OS_statvfs_t FileStats; + OS_statvfs_t FileStats = {0}; osal_status_t OS_Status; CFE_Status_t Result;