Looks like at least one of the elements of `fmt` should be initialized with a `NULL` rather than 0. It's a small point, but...