30 lines
857 B
Diff
30 lines
857 B
Diff
--- hw/xfree86/parser/write.c.orig 2006-07-12 11:15:49.000000000 -0400
|
|
+++ hw/xfree86/parser/write.c 2006-07-12 11:19:59.000000000 -0400
|
|
@@ -108,13 +108,19 @@
|
|
|
|
xf86printLayoutSection (cf, cptr->conf_layout_lst);
|
|
|
|
- fprintf (cf, "Section \"Files\"\n");
|
|
- xf86printFileSection (cf, cptr->conf_files);
|
|
- fprintf (cf, "EndSection\n\n");
|
|
-
|
|
- fprintf (cf, "Section \"Module\"\n");
|
|
- xf86printModuleSection (cf, cptr->conf_modules);
|
|
- fprintf (cf, "EndSection\n\n");
|
|
+ if (cptr->conf_files != NULL)
|
|
+ {
|
|
+ fprintf (cf, "Section \"Files\"\n");
|
|
+ xf86printFileSection (cf, cptr->conf_files);
|
|
+ fprintf (cf, "EndSection\n\n");
|
|
+ }
|
|
+
|
|
+ if (cptr->conf_modules != NULL)
|
|
+ {
|
|
+ fprintf (cf, "Section \"Module\"\n");
|
|
+ xf86printModuleSection (cf, cptr->conf_modules);
|
|
+ fprintf (cf, "EndSection\n\n");
|
|
+ }
|
|
|
|
xf86printVendorSection (cf, cptr->conf_vendor_lst);
|
|
|