HomePhorge

Check open() return is non-negative integer

Description

Check open() return is non-negative integer

open() returns -1 to indicate an error, the code checked for 0 for errors.

Suggested-by: https://github.com/csutils/csmock
See-also: https://github.com/pst-format/libpst/issues/6

Details

Provenance
Paul Wise <pabs3@bonedaddy.net>Authored on Aug 20 2023, 8:14 AM
mollekopfPushed on Sep 3 2024, 2:20 PM
Parents
rLIBPSTab39e6fc9f0a: Fix indentation character inconsistencies
Branches
Unknown
Tags
Unknown
Build Status
Buildable 50151