3 ms·
From hashtable (https://github.com/srdja/Collections-C/blob/master/src/hashtable.c#L58 https://github.com/srdja/Collections-C/blob/master/src/hasht...) > HashT
by mschuster91 11y ago
From hashtable (https://github.com/srdja/Collections-C/blob/master/src/hashtable.c#L58 https://github.com/srdja/Collections-C/blob/master/src/hasht...)
> HashTableConf htc;
Hold short, that structure is allocated from the stack and not via malloc? I'd expect that one to blow up after the second call to hashtable_new.
edit: seems like htc is immutable and the values copied over in hashtable_new_conf, but that's downright scary in case one forgets this semantic and accidentally uses htc for something.