summaryrefslogtreecommitdiffstats
path: root/sys/boot/uboot/lib/glue.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/uboot/lib/glue.c')
-rw-r--r--sys/boot/uboot/lib/glue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/uboot/lib/glue.c b/sys/boot/uboot/lib/glue.c
index d01e33b..32c4df2 100644
--- a/sys/boot/uboot/lib/glue.c
+++ b/sys/boot/uboot/lib/glue.c
@@ -513,7 +513,7 @@ ub_env_enum(const char *last)
if (!syscall(API_ENV_ENUM, NULL, (uint32_t)last, (uint32_t)&env))
return (NULL);
- if (env == NULL)
+ if (env == NULL || last == env)
/* no more env. variables to enumerate */
return (NULL);
OpenPOWER on IntegriCloud