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
Unknown Object (File)
Mon, Oct 12, 4:34 PM
Unknown Object (File)
Sun, Oct 11, 11:28 AM
Unknown Object (File)
Fri, Oct 9, 4:56 PM
Unknown Object (File)
Fri, Oct 9, 4:54 PM
Unknown Object (File)
Fri, Oct 9, 4:07 PM
Unknown Object (File)
Mon, Oct 5, 2:57 AM
Unknown Object (File)
Mon, Oct 5, 2:55 AM
Unknown Object (File)
Tue, Sep 29, 6:08 PM
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