troydhanson / uthash

C macros for hash tables and more
Other
4.18k stars 926 forks source link

Fix clang static analyzer false positive #180

Open inye opened 5 years ago

inye commented 5 years ago

Fixes #128. Clang static analyzer was thinking that it's possible to free() list head without updating head pointer. This assert assures static analyzer that branch without head pointer update could be taken only when we are freeing non-head element.

Scorbutics commented 4 years ago

Hello, I'm quite interested in this Merge request in order to keep scan-build quiet on the uthash part. Are there any plan of merging it soon ? Thank you