Skip to content

Commit

Permalink
Fix MozcDirectClient::Call
Browse files Browse the repository at this point in the history
output should be assigned after EvalCommand.
  • Loading branch information
wengxt committed Dec 28, 2024
1 parent 8fc360d commit 8709802
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/unix/fcitx5/mozc_direct_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,11 @@ bool MozcDirectClient::Call(const mozc::commands::Input &input,
mozc::commands::Output *output) {
mozc::commands::Command command;
*command.mutable_input() = input;
if (!GetSessionHandler()->EvalCommand(&command)) {
return false;
}
*output = command.output();
return GetSessionHandler()->EvalCommand(&command);
return true;
}

void MozcDirectClient::InitInput(mozc::commands::Input *input) const {
Expand Down

0 comments on commit 8709802

Please sign in to comment.