Skip to content

Commit

Permalink
EDITOR: always print exe in JSON results
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed May 22, 2024
1 parent 82c7f27 commit b3e7947
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/editor/editor.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,11 @@ void ffGenerateEditorJsonResult(FF_MAYBE_UNUSED FFEditorOptions* options, yyjson

yyjson_mut_val* obj = yyjson_mut_obj_add_obj(doc, module, "result");
yyjson_mut_obj_add_strbuf(doc, obj, "name", &result.name);
yyjson_mut_obj_add_strcpy(doc, obj, "exe", result.exe);
yyjson_mut_obj_add_strbuf(doc, obj, "path", &result.path);
if (result.exe)
yyjson_mut_obj_add_strcpy(doc, obj, "exe", result.exe);
else
yyjson_mut_obj_add_null(doc, obj, "exe");
yyjson_mut_obj_add_strbuf(doc, obj, "version", &result.version);

ffStrbufDestroy(&result.name);
Expand Down

0 comments on commit b3e7947

Please sign in to comment.