summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2008-03-07 11:47:19 -0800
committerAaron Plattner <aplattner@nvidia.com>2008-03-07 11:47:19 -0800
commitb27db3d10d58b821e87fbe3f46166e02dc589855 (patch)
tree9ec4b5023d9508670705a5eaeedacad742669eee
parentf71afa039b901e09d6957d2e1e72d70a28921fbd (diff)
171.06171.06
-rw-r--r--src/XF86Config-parser/Write.c16
-rw-r--r--src/libXNVCtrl/libXNVCtrl.abin17180 -> 17180 bytes
2 files changed, 10 insertions, 6 deletions
diff --git a/src/XF86Config-parser/Write.c b/src/XF86Config-parser/Write.c
index 12d78f7..98b1dd6 100644
--- a/src/XF86Config-parser/Write.c
+++ b/src/XF86Config-parser/Write.c
@@ -98,13 +98,17 @@ int xconfigWriteConfigFile (const char *filename, XConfigPtr cptr)
xconfigPrintLayoutSection (cf, cptr->layouts);
- fprintf (cf, "Section \"Files\"\n");
- xconfigPrintFileSection (cf, cptr->files);
- fprintf (cf, "EndSection\n\n");
+ if (cptr->files) {
+ fprintf (cf, "Section \"Files\"\n");
+ xconfigPrintFileSection (cf, cptr->files);
+ fprintf (cf, "EndSection\n\n");
+ }
- fprintf (cf, "Section \"Module\"\n");
- xconfigPrintModuleSection (cf, cptr->modules);
- fprintf (cf, "EndSection\n\n");
+ if (cptr->modules) {
+ fprintf (cf, "Section \"Module\"\n");
+ xconfigPrintModuleSection (cf, cptr->modules);
+ fprintf (cf, "EndSection\n\n");
+ }
xconfigPrintVendorSection (cf, cptr->vendors);
diff --git a/src/libXNVCtrl/libXNVCtrl.a b/src/libXNVCtrl/libXNVCtrl.a
index f02dff0..7693bd3 100644
--- a/src/libXNVCtrl/libXNVCtrl.a
+++ b/src/libXNVCtrl/libXNVCtrl.a
Binary files differ