HomeFreeBSD

Check the first byte of the array for NUL, instead of the array as a NULL…

Description

Check the first byte of the array for NUL, instead of the array as a NULL pointer

The partition_name field is an array, so can never be NULL itself. Check only
the first byte instead.

This was found when test building with clang, but I'm not sure how it passes
gcc's warnings either.

Details

Provenance
jhibbitsAuthored on Aug 6 2016, 3:10 PM
Parents
rG161c4151333b: Two fixups for dtrace
Branches
Unknown
Tags
Unknown

Event Timeline