Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#71 Workaround for when chitin key contains no entries

closed-fixed
nobody
None
5
2006-03-17
2006-03-16
Waywocket
No

When chitin.key contains no entries - ie. all files are
found in the override - dictionary lookups cause a
crash when determining an value modulo the hash size,
since it is zero. With this patch the number of
resources is initialised to one if it is found to be
zero. This should cause no problems since nothing is
changed in the usual case, where chitin.key contains
some resource entries, but fixes some SIGFPEs I've been
having whenever a resource isn't found in the override
and has to be looked up (now I get a useful error
message rather than a crash).

Discussion

  • Waywocket
    Waywocket
    2006-03-16

     
    Attachments
  • Laszlo Toth
    Laszlo Toth
    2006-03-17

    • status: open --> closed-fixed
     
  • Laszlo Toth
    Laszlo Toth
    2006-03-17

    Logged In: YES
    user_id=885460

    fixed differently, because it wasn't just buggy when entry #
    was 0.