Fix runtime warning in camel_filter_driver_flush().
authorMatthew Barnes <mbarnes@redhat.com>
Mon, 12 Jul 2010 11:49:58 +0000 (07:49 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Mon, 12 Jul 2010 11:49:58 +0000 (07:49 -0400)
Only propagate the error if there's an error to propagate.

camel/camel-filter-driver.c

index b52a561..528b83d 100644 (file)
@@ -1179,7 +1179,8 @@ camel_filter_driver_flush (CamelFilterDriver *driver,
 
        g_hash_table_foreach_remove (p->only_once, (GHRFunc) run_only_once, &data);
 
-       g_propagate_error (error, data.error);
+       if (data.error != NULL)
+               g_propagate_error (error, data.error);
 }
 
 static gint