Memory / Swap: always initialize local variables

This commit is contained in:
李通洲
2025-05-08 23:17:22 +08:00
parent 484e05eae3
commit 6e1ab12399
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ void ffGenerateMemoryJsonConfig(FFMemoryOptions* options, yyjson_mut_doc* doc, y
void ffGenerateMemoryJsonResult(FF_MAYBE_UNUSED FFMemoryOptions* options, yyjson_mut_doc* doc, yyjson_mut_val* module)
{
FFMemoryResult storage;
FFMemoryResult storage = {};
const char* error = ffDetectMemory(&storage);
if(error)