More fixes found with testsuites + merge of bug-analysis tool

You create an array of length 2 but only fill the first position, why? should we use talloc_zero_array instead?