X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=disk%2Fpart.c;h=30229692fb84c22bdbe0801721a76ccc48a9bf22;hb=a10973e7fac1e0338c9c0bb79ae114d869b6200f;hp=64d76e8380690fcc5f9ccb9409ed40a74d72a9d0;hpb=b3873d3f4c424e6563750bb517fac03c2e833cdc;p=u-boot diff --git a/disk/part.c b/disk/part.c index 64d76e8380..30229692fb 100644 --- a/disk/part.c +++ b/disk/part.c @@ -489,7 +489,8 @@ int get_device_and_partition(const char *ifname, const char *dev_part_str, disk_partition_t tmpinfo; /* If no dev_part_str, use bootdevice environment variable */ - if (!dev_part_str) + if (!dev_part_str || !strlen(dev_part_str) || + !strcmp(dev_part_str, "-")) dev_part_str = getenv("bootdevice"); /* If still no dev_part_str, it's an error */