HomeFreeBSD

The 'while (array != NULL) { }' suggests scan-build that array may be

Description

The 'while (array != NULL) { }' suggests scan-build that array may be
initially NULL, which is not possible. Change the loop to
'do {} while (array != NULL)' to satisfy scan-build and assert that
array really cannot be NULL just in case.

Submitted by: pjd@
Found by: scan-build
MFC after: 1 month
Sponsored by: Wheel Systems

Details

Provenance
oshogboAuthored on
Parents
rS323851: Remove redundant initialization. Don't use variable - just return the value.
Branches
Unknown
Tags
Unknown