mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-10-06 10:59:48 +08:00
shell: Fix rtems_shell_init_env()
Do not discard a user provided task name in rtems_shell_init_env().
This commit is contained in:
@@ -74,10 +74,10 @@ static rtems_shell_env_t *rtems_shell_init_env(
|
||||
return NULL;
|
||||
if ( !shell_env_p ) {
|
||||
*shell_env = rtems_global_shell_env;
|
||||
shell_env->taskname = NULL;
|
||||
} else {
|
||||
*shell_env = *shell_env_p;
|
||||
}
|
||||
shell_env->taskname = NULL;
|
||||
|
||||
return shell_env;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user