JsonConfig: refactor string buffer JSON handling for robustness

This commit is contained in:
李通洲
2025-08-02 17:41:19 +08:00
parent 6d86813647
commit 3cef51ec4a
21 changed files with 90 additions and 64 deletions
+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;
}