src/target: init current_target_name for nuclei smp etrace
Change-Id: I6a0c25075f4ed467dbb7d80b3585695f73c4abaf Signed-off-by: wangyanwen <wangyanwen@nucleisys.com>
This commit is contained in:
parent
6845d34ae3
commit
5bca8adec0
|
@ -5938,6 +5938,7 @@ static int target_create(struct jim_getopt_info *goi)
|
|||
|
||||
cp = Jim_GetString(new_cmd, NULL);
|
||||
target->cmd_name = strdup(cp);
|
||||
target->current_target_name = target->cmd_name;
|
||||
if (!target->cmd_name) {
|
||||
LOG_ERROR("Out of memory");
|
||||
rtos_destroy(target);
|
||||
|
|
Loading…
Reference in New Issue