diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-11-02 13:07:13 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-11-02 13:07:13 +0800 |
commit | 3b60a3985590ec48406d99a788d96cb3e43c1d64 (patch) | |
tree | 5efd3fd225728f2dfd59b1fead58e2d122fc181c | |
parent | 91eae33bdc96da7731efb691cd53f05317618945 (diff) | |
download | gsoc2013-evolution-3b60a3985590ec48406d99a788d96cb3e43c1d64.tar gsoc2013-evolution-3b60a3985590ec48406d99a788d96cb3e43c1d64.tar.gz gsoc2013-evolution-3b60a3985590ec48406d99a788d96cb3e43c1d64.tar.bz2 gsoc2013-evolution-3b60a3985590ec48406d99a788d96cb3e43c1d64.tar.lz gsoc2013-evolution-3b60a3985590ec48406d99a788d96cb3e43c1d64.tar.xz gsoc2013-evolution-3b60a3985590ec48406d99a788d96cb3e43c1d64.tar.zst gsoc2013-evolution-3b60a3985590ec48406d99a788d96cb3e43c1d64.zip |
Fix for when 'desc' is NULL.
2000-11-02 Jeffrey Stedfast <fejj@helixcode.com>
* filter-driver.c (filter_driver_log): Fix for when 'desc' is
NULL.
svn path=/trunk/; revision=6345
-rw-r--r-- | filter/ChangeLog | 5 | ||||
-rw-r--r-- | filter/filter-driver.c | 11 |
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: { |