diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-01-29 09:33:51 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-01-29 09:33:51 +0800 |
commit | 0e6414cd4ce55a07a9c13dca58c4b583936876ac (patch) | |
tree | eb519c89b479de7edd814cc87315ec6b6995d165 | |
parent | 2f904b426ce0b24a9b0893e6051058b5304c05b3 (diff) | |
download | gsoc2013-evolution-0e6414cd4ce55a07a9c13dca58c4b583936876ac.tar.gz gsoc2013-evolution-0e6414cd4ce55a07a9c13dca58c4b583936876ac.tar.zst gsoc2013-evolution-0e6414cd4ce55a07a9c13dca58c4b583936876ac.zip |
Use while (node->next) instead of while (node)
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)
svn path=/trunk/; revision=15502
-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); |