HomeFreeBSD

Use NULL instead of 0 for pointers.

Description

Use NULL instead of 0 for pointers.

fopen(3) will return NULL in case it can't open the STREAM.
The malloc will return a pointer to the allocated memory if successful,
otherwise a NULL pointer is returned.

Also add an extra DEBUG1 to print out the error to open a file.

Reviewed by: ed
Differential Revision: https://svnweb.freebsd.org/changeset/base/297959

Details

Provenance
araujoAuthored on
Reviewer
ed
Parents
rS297960: MFC 297678: Enhance uuencode with a -r option to produce raw output.
Branches
Unknown
Tags
Unknown