]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_nvedit.c
printenv: Correct out-of-memory condition check.
[karo-tx-uboot.git] / common / cmd_nvedit.c
index afa128ece2d1ed3405f73ea1c9837adde882ddee..68b0f4f6d809b36e8e8b91a87ad07e4c21473c09 100644 (file)
@@ -96,7 +96,7 @@ int get_env_id(void)
 static int env_print(char *name, int flag)
 {
        char *res = NULL;
-       size_t len;
+       ssize_t len;
 
        if (name) {             /* print a single name */
                ENTRY e, *ep;
@@ -120,6 +120,7 @@ static int env_print(char *name, int flag)
        }
 
        /* should never happen */
+       printf("## Error: cannot export environment\n");
        return 0;
 }