srdja / Collections-C

A library of generic data structures for the C language.
http://srdja.github.io/Collections-C
GNU Lesser General Public License v3.0
2.8k stars 328 forks source link

Fix #171 #172

Closed JaviMuller closed 10 months ago

JaviMuller commented 10 months ago

This is my first time contributing to a public repo with some size. If you have any suggestions on how to improve either the issue or the pull request I would gladly accept any guidance. Thanks in advance.

srdja commented 10 months ago

@JaviMuller Thanks for finding this bug! The fix looks good. The only thing that would be nice to add is a test case covering this. Something like the example you've provided in the issue just to make sure the function returns a CC_ERR_KEY_NOT_FOUND status when called on an empty table.