fix a missing NULL at the end of a vararg list