The Files and Module sections are always written out, even if they are empty,
because the printers in xc/programs/Xserver/hw/xfree86/parser/write.c do not
have guards to check for NULL. Other sections in the config file writer have
these guards. Attached is a simple, but untested, patch against the gitweb sources.
Created attachment 132311 [details]
patch to not write out empty sections
Patch added to: xorg-x11-server-1.1.1-7