From 5ba34a34a9811b9fca16bebf6cf95f80b28dd910 Mon Sep 17 00:00:00 2001 From: yaworsky Date: Wed, 26 Oct 2005 07:04:39 +0000 Subject: Fixed default value of 'ifempty'. Fixed compiler warning. --- daemon/conf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemon/conf.c b/daemon/conf.c index c31115b..383673c 100644 --- a/daemon/conf.c +++ b/daemon/conf.c @@ -134,6 +134,9 @@ static gboolean init_file_dest( struct destination *dest, { const gchar *aname; + /* set nonzero defaults */ + dest->u.file.ifempty = TRUE; + for( ; (aname = *attribute_names) != NULL; attribute_names++, attribute_values++ ) { const gchar *aval = *attribute_values; @@ -803,6 +806,8 @@ static void dump_configuration() d->name, d->u.file.name_pattern, d->u.relay.omit_hostname? "yes" : "no" ); break; + default: + break; } } TRACE( "Filters:\n" ); -- cgit v1.2.3