From 0e6414cd4ce55a07a9c13dca58c4b583936876ac Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 29 Jan 2002 01:33:51 +0000 Subject: Use while (node->next) instead of while (node) 2002-01-28 Jeffrey Stedfast * camel-filter-driver.c (camel_filter_driver_remove_rule_by_name): Use while (node->next) instead of while (node) svn path=/trunk/; revision=15502 --- camel/ChangeLog | 3 +++ camel/camel-filter-driver.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'camel') 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 + * 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); -- cgit