shell: Fix rtems_shell_init_env()

Do not discard a user provided task name in rtems_shell_init_env().
This commit is contained in:
Sebastian Huber
2018-03-12 11:24:44 +01:00
parent 0fb724a7bd
commit 2cec5acdf2
+1 -1
View File
@@ -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;
}