From 7d96b9189a2b623347bc90b8e7e22d349d9d4440 Mon Sep 17 00:00:00 2001 From: savior-xzh Date: Wed, 13 Aug 2025 15:32:48 +0800 Subject: [PATCH] fix aa crash Signed-off-by: savior-xzh Change-Id: Ibf5164f329e4dbde49b23821462e4263e9aaef94 --- tools/aa/src/ability_command.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/aa/src/ability_command.cpp b/tools/aa/src/ability_command.cpp index c6dd0d53e24..88f3f006431 100644 --- a/tools/aa/src/ability_command.cpp +++ b/tools/aa/src/ability_command.cpp @@ -1721,8 +1721,7 @@ ErrCode AbilityManagerShellCommand::MakeWantFromCmd(Want& want, std::string& win TAG_LOGI(AAFwkTag::AA_TOOL, "'aa %{public}s -s' no arg", cmd_.c_str()); resultReceiver_.append("error: option "); - resultReceiver_.append(argv_[optind - 1]); - resultReceiver_.append("' requires a value.\n"); + resultReceiver_.append("requires a value.\n"); result = OHOS::ERR_INVALID_VALUE; break; -- Gitee