Page MenuHomeFreeBSD

Check the return value from utf8_to_ucs2 instead of whether or not uv is NULL. That's more correct and doesn't depend on the error behavior of utf8_to_ucs2. In practice, we'll never see this though since we pass utf8_to_ucs2 a well formed string.
ClosedPublic

Authored by imp on Jan 15 2018, 5:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 4:51 AM
Unknown Object (File)
Nov 6 2023, 6:46 AM
Unknown Object (File)
Nov 4 2023, 5:33 AM
Unknown Object (File)
Nov 1 2023, 1:13 AM
Unknown Object (File)
Oct 30 2023, 8:43 PM
Unknown Object (File)
Oct 19 2023, 8:56 PM
Unknown Object (File)
Oct 19 2023, 4:10 PM
Unknown Object (File)
Oct 17 2023, 8:58 AM
Subscribers
None

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 14385
Build 14539: arc lint + arc unit

Event Timeline

stand/efi/boot1/boot1.c
105

If we check the return value below, we do not need to set NULL here, except if the compiler will trigger may be used uninitialized warning...

stand/efi/boot1/boot1.c
105

We do, because we want utf8_to_ucs2 to allocate space.

This revision was not accepted when it landed; it landed in state Needs Review.Jan 15 2018, 10:17 PM
This revision was automatically updated to reflect the committed changes.