Project

General

Profile

Bug #854093

entry_type() has unsigned return type, but tries to return -1 on error

Added by Marko Lindqvist 7 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Category:
General
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Return type of entry_type() is 'enum entry_type', i.e., unsigned enumeration type. Yet it's supposed to return -1 on error.

History

#2 Updated by Marko Lindqvist 6 months ago

No caller is (or was) checking if error is returned. They are checking for specific legal values only.

#3 Updated by Marko Lindqvist 6 months ago

  • Status changed from Resolved to Closed
  • Assignee set to Marko Lindqvist

Also available in: Atom PDF