hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
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