Closed silvioprog closed 6 years ago
LGTM, but I'd be inclined to merge 1dd1d23 instead, because I don't see why we need calloc
at all. Anyone feel like defending calloc
here?
Otherwise I'll merge 1dd1d23 in a few days.
Issue #94 is tangentially related, btw.
Since utstring_init()
already zero-initializes the structure, +1 for pure malloc()
since . :smiley:
Closing to merge https://github.com/troydhanson/uthash/commit/1dd1d2394a5527ae03b4368934c4afc1a8c422d8 as better fixing.
Thanks dudes! :+1: :smiley: :+1:
Hello.
According to
man 3 calloc
, the first parameter ofcalloc()
function is thenmemb
of elements:So this PR should fix it.
(notice it was property used here).
Thank you!