forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/arch/mips/fw/lib/cmdline.c
....@@ -53,7 +53,7 @@
5353 {
5454 char *result = NULL;
5555
56
- if (_fw_envp != NULL) {
56
+ if (_fw_envp != NULL && fw_envp(0) != NULL) {
5757 /*
5858 * Return a pointer to the given environment variable.
5959 * YAMON uses "name", "value" pairs, while U-Boot uses