X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=disk%2Fpart.c;fp=disk%2Fpart.c;h=c67fdacc79257f12b64583de2bd845cb98445151;hb=00caae6d47645e68d6e5277aceb69592b49381a6;hp=d76aa903a8c6deba137d710e6be320fe566056bb;hpb=fd1e959e91d2b0b2e853d09dd9167dfff18a616c;p=oweals%2Fu-boot.git diff --git a/disk/part.c b/disk/part.c index d76aa903a8..c67fdacc79 100644 --- a/disk/part.c +++ b/disk/part.c @@ -455,7 +455,7 @@ int blk_get_device_part_str(const char *ifname, const char *dev_part_str, /* If no dev_part_str, use bootdevice environment variable */ if (!dev_part_str || !strlen(dev_part_str) || !strcmp(dev_part_str, "-")) - dev_part_str = getenv("bootdevice"); + dev_part_str = env_get("bootdevice"); /* If still no dev_part_str, it's an error */ if (!dev_part_str) {