From 211c5ed82c3c2d3bb784c875653556cfc9da8a6d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 11 May 2022 13:37:05 +0200 Subject: pf02: Fix shell envirionment initialization Close #4654. --- testsuite/pf02/test_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'testsuite/pf02') diff --git a/testsuite/pf02/test_main.c b/testsuite/pf02/test_main.c index 5941ea5a..dfb9847b 100644 --- a/testsuite/pf02/test_main.c +++ b/testsuite/pf02/test_main.c @@ -167,6 +167,7 @@ test_main(void) { rtems_status_code sc; int rv; + rtems_shell_env_t env; prepare_files(); @@ -176,9 +177,7 @@ test_main(void) rv = rtems_initialize_ftpd(); assert(rv == 0); - rtems_shell_env_t env; - - memset(&env, 0, sizeof(env)); + rtems_shell_dup_current_env(&env); rtems_shell_main_loop( &env ); exit(0); -- cgit v1.2.3