JsonConfig: refactor string buffer JSON handling for robustness
This commit is contained in:
1 parent
6d86813647
commit
3cef51ec4a
21 files changed
+90
-64
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user