summaryrefslogtreecommitdiff
path: root/avr/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'avr/env.c')
-rw-r--r--avr/env.c4
1 files changed, 2 insertions, 2 deletions
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;
}