aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filter/ChangeLog5
-rw-r--r--filter/filter-driver.c11
2 files changed, 12 insertions, 4 deletions
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 <fejj@helixcode.com>
+
+ * filter-driver.c (filter_driver_log): Fix for when 'desc' is
+ NULL.
+
2000-11-01 Jeffrey Stedfast <fejj@helixcode.com>
* 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: {