X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/bb497e9d2ea1437c570e179e99f024d2bc456d6f..f1e16f884308e8ef720a4ecbcdcc97af97dce4bd:/avr/env.c diff --git a/avr/env.c b/avr/env.c index 8896004..671d1c4 100644 --- a/avr/env.c +++ b/avr/env.c @@ -716,8 +716,8 @@ command_ret_t do_env_print(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, /* print selected env vars */ while (optind < argc) { - int rc = env_print(argv[optind], mode); - if (rc < 0) { + int len = env_print(argv[optind], mode); + if (len < 0) { printf_P(PSTR("## Error: \"%s\" not defined\n"), argv[optind]); rc = CMD_RET_FAILURE; }