diff options
| author | Marcel Moolenaar <marcel@FreeBSD.org> | 2003-03-01 05:13:59 +0000 |
|---|---|---|
| committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2003-03-01 05:13:59 +0000 |
| commit | 884d549049e62457a84f5375a2a190d3d2d539b1 (patch) | |
| tree | 41c0cff65b142d05c7bd900006045bfe2a54262e /sys/boot | |
| parent | 9e2e96d803d358ab745ae25f165246e400d26c98 (diff) | |
Notes
Diffstat (limited to 'sys/boot')
| -rw-r--r-- | sys/boot/efi/libefi/libefi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/efi/libefi/libefi.c b/sys/boot/efi/libefi/libefi.c index 5ef97f405f55..abfa6a8265ac 100644 --- a/sys/boot/efi/libefi/libefi.c +++ b/sys/boot/efi/libefi/libefi.c @@ -120,7 +120,7 @@ efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table) * If the string is already in Unicode-16, we make a copy so that * we know we can always modify the string. */ - if (img->LoadOptionsSize) { + if (img->LoadOptionsSize > 0 && img->LoadOptions != NULL) { if (img->LoadOptionsSize == strlen(img->LoadOptions) + 1) { args = malloc(img->LoadOptionsSize << 1); for (argc = 0; argc < img->LoadOptionsSize; argc++) |
