diff options
author | yaworsky <yaworsky> | 2005-10-26 07:04:39 +0000 |
---|---|---|
committer | yaworsky <yaworsky> | 2005-10-26 07:04:39 +0000 |
commit | 5ba34a34a9811b9fca16bebf6cf95f80b28dd910 (patch) | |
tree | 29cab1c8e0bf7151587d93644e431daa7dad1b10 | |
parent | 0f6fa595431267af5550a1b937b20f68957ca33f (diff) | |
download | syslog-win32-5ba34a34a9811b9fca16bebf6cf95f80b28dd910.tar.gz syslog-win32-5ba34a34a9811b9fca16bebf6cf95f80b28dd910.tar.xz syslog-win32-5ba34a34a9811b9fca16bebf6cf95f80b28dd910.zip |
Fixed default value of 'ifempty'.
Fixed compiler warning.
-rw-r--r-- | daemon/conf.c | 5 |
1 files changed, 5 insertions, 0 deletions
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" ); |