Removing the first (void *) 0. This is incorrect and makes a fresh build segfault on my system.
As from the Xft manual:
Quote:
[XftListFonts takes as argument] ... first an XftPattern description as used by XftPatternBuild followed by a null char pointer and then a list of element names as used by XftObjectSetBuild followed by another null char pointer.