Page MenuHomeFreeBSD

kyua: Don't pass NULL to unique_ptr constructors
ClosedPublic

Authored by jhb on Apr 30 2025, 4:57 PM.
Tags
None
Referenced Files
F150989944: D50090.diff
Sun, Apr 5, 8:20 AM
F150865305: D50090.id.diff
Sat, Apr 4, 2:12 PM
F150851660: D50090.diff
Sat, Apr 4, 12:03 PM
Unknown Object (File)
Fri, Apr 3, 5:46 PM
Unknown Object (File)
Wed, Apr 1, 1:57 PM
Unknown Object (File)
Wed, Apr 1, 3:29 AM
Unknown Object (File)
Sun, Mar 29, 8:49 AM
Unknown Object (File)
Sun, Mar 29, 12:48 AM
Subscribers

Details

Summary

This is ambiguous when NULL is defined to an integral constant.
Instead, use the more iodiomatic pattern of {} to construct a default
pointer.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable