From b27db3d10d58b821e87fbe3f46166e02dc589855 Mon Sep 17 00:00:00 2001 From: Aaron Plattner Date: Fri, 7 Mar 2008 11:47:19 -0800 Subject: 171.06 --- src/XF86Config-parser/Write.c | 16 ++++++++++------ src/libXNVCtrl/libXNVCtrl.a | Bin 17180 -> 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 Binary files a/src/libXNVCtrl/libXNVCtrl.a and b/src/libXNVCtrl/libXNVCtrl.a differ -- cgit v1.2.3