JsonConfig: refactor string buffer JSON handling for robustness

This commit is contained in:
李通洲 committed 2025-08-02 17:41:19 +08:00
1 parent 6d86813647
commit 3cef51ec4a
21 files changed
+90 -64

No files matched your search

+3 -3
View File
@@ -86,19 +86,19 @@ void ffParseCommandJsonObject(FFCommandOptions* options, yyjson_val* module)
if (ffStrEqualsIgnCase(key, "shell"))
{
ffStrbufSetS(&options->shell, yyjson_get_str(val));
ffStrbufSetJsonVal(&options->shell, val);
continue;
}
if (ffStrEqualsIgnCase(key, "param"))
{
ffStrbufSetS(&options->param, yyjson_get_str(val));
ffStrbufSetJsonVal(&options->param, val);
continue;
}
if (ffStrEqualsIgnCase(key, "text"))
{
ffStrbufSetS(&options->text, yyjson_get_str(val));
ffStrbufSetJsonVal(&options->text, val);
continue;
}