diff options
-rw-r--r-- | camel/ChangeLog | 3 | ||||
-rw-r--r-- | camel/camel-filter-driver.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 321edc411e..ceb7cbfd89 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,8 @@ 2002-01-28 Jeffrey Stedfast <fejj@ximian.com> + * camel-filter-driver.c (camel_filter_driver_remove_rule_by_name): + Use while (node->next) instead of while (node) + * providers/smtp/camel-smtp-transport.c (smtp_decode_status_code): New function to decode an enhanced status code. (smtp_set_exception): Sets an exception based on the diff --git a/camel/camel-filter-driver.c b/camel/camel-filter-driver.c index 47f60c2f7a..d8b255da63 100644 --- a/camel/camel-filter-driver.c +++ b/camel/camel-filter-driver.c @@ -356,7 +356,7 @@ camel_filter_driver_remove_rule_by_name (CamelFilterDriver *d, const char *name) struct _filter_rule *node; node = (struct _filter_rule *) p->rules.head; - while (node) { + while (node->next) { if (!strcmp (node->name, name)) { e_dlist_remove ((EDListNode *) node); g_free (node->match); |