]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: event-filter - Correct a comment referring to old filter syntax
authorJosef 'Jeff' Sipek <jeff.sipek@open-xchange.com>
Tue, 19 Jan 2021 18:42:17 +0000 (13:42 -0500)
committerJosef 'Jeff' Sipek <jeff.sipek@open-xchange.com>
Tue, 19 Jan 2021 18:42:17 +0000 (13:42 -0500)
src/lib/event-filter.c

index e0803f9a4de6fa23cc66c3af1f888d591438f2be..4db4584b1dfb48448abb187dbe16784506a15e54 100644 (file)
@@ -518,7 +518,7 @@ event_match_field(struct event *event, const struct event_field *wanted_field,
        while ((field = event_find_field(event, wanted_field->key)) == NULL) {
                event = event_get_parent(event);
                if (event == NULL) {
-                       /* "field=" matches nonexistent field */
+                       /* field="" matches nonexistent field */
                        return wanted_field->value.str[0] == '\0';
                }
        }
@@ -529,7 +529,7 @@ event_match_field(struct event *event, const struct event_field *wanted_field,
                        return FALSE;
                }
                if (field->value.str[0] == '\0') {
-                       /* field was removed, but it matches "field=" filter */
+                       /* field was removed, but it matches field="" filter */
                        return wanted_field->value.str[0] == '\0';
                }
                return wildcard_match_icase(field->value.str, wanted_field->value.str);