From 3b60a3985590ec48406d99a788d96cb3e43c1d64 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 2 Nov 2000 05:07:13 +0000 Subject: Fix for when 'desc' is NULL. 2000-11-02 Jeffrey Stedfast * filter-driver.c (filter_driver_log): Fix for when 'desc' is NULL. svn path=/trunk/; revision=6345 --- filter/ChangeLog | 5 +++++ filter/filter-driver.c | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'filter') diff --git a/filter/ChangeLog b/filter/ChangeLog index 983f34beba..05059b3e2f 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,8 @@ +2000-11-02 Jeffrey Stedfast + + * filter-driver.c (filter_driver_log): Fix for when 'desc' is + NULL. + 2000-11-01 Jeffrey Stedfast * filter-driver.c (filter_driver_filter_message): Use diff --git a/filter/filter-driver.c b/filter/filter-driver.c index 98f46592b8..7ab62a4d7c 100644 --- a/filter/filter-driver.c +++ b/filter/filter-driver.c @@ -549,11 +549,14 @@ filter_driver_log (FilterDriver *driver, enum filter_log_t status, const char *d struct _FilterDriverPrivate *p = _PRIVATE (driver); if (p->logfile) { - va_list ap; - char *str; + char *str = NULL; - va_start (ap, desc); - str = g_strdup_vprintf (desc, ap); + if (desc) { + va_list ap; + + va_start (ap, desc); + str = g_strdup_vprintf (desc, ap); + } switch (status) { case FILTER_LOG_START: { -- cgit