]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_nvedit.c
Quick & Dirty fix for log buffer problem when environment is not set
[karo-tx-uboot.git] / common / cmd_nvedit.c
index 08e888c08e351ee9f3657b946b1b4cc25a27c1f8..0a19ce405b76f4b12a852a07fb1bb8d02dcee4b1 100644 (file)
@@ -42,6 +42,7 @@
 #include <common.h>
 #include <command.h>
 #include <environment.h>
+#include <watchdog.h>
 #include <cmd_nvedit.h>
 #include <linux/stddef.h>
 #include <asm/byteorder.h>
@@ -459,6 +460,8 @@ char *getenv (uchar *name)
 {
        int i, nxt;
 
+       WATCHDOG_RESET();
+
        for (i=0; env_get_char(i) != '\0'; i=nxt+1) {
                int val;