#8 uthash and head as function parameter

open-invalid
nobody
None
5
2011-11-10
2011-11-10
d3n1m
No

if head is a function parameter and not a global variable then head is not properly initialized. a small example is attached, in add( ... ) the assertion after HASH_ADD_KEYPTR goes through, but in main function it fails.

Discussion

  • d3n1m
    d3n1m
    2011-11-10

    my fault, sorry

     
  • d3n1m
    d3n1m
    2011-11-10

    • status: open --> open-invalid