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 /filter/filter-driver.c | |
parent | 91eae33bdc96da7731efb691cd53f05317618945 (diff) | |
download | gsoc2013-evolution-3b60a3985590ec48406d99a788d96cb3e43c1d64.tar.gz 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
Diffstat (limited to 'filter/filter-driver.c')
-rw-r--r-- | filter/filter-driver.c | 11 |
1 files changed, 7 insertions, 4 deletions
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: { |