diff options
author | lexborisov <lex.borisov@gmail.com> | 2017-03-14 00:07:22 +0300 |
---|---|---|
committer | lexborisov <lex.borisov@gmail.com> | 2017-03-14 00:07:22 +0300 |
commit | 5d39ca65f9cfc508139e6140dd247c4c3a3d8284 (patch) | |
tree | a6119b11b043160dc24809b8f042f720df037f85 | |
parent | ea568bb78657a596ee5beb8348159e1ebcb3a8a7 (diff) |
Fixes for https://github.com/lexborisov/Modest/issues/15
-rw-r--r-- | source/modest/finder/match.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/modest/finder/match.c b/source/modest/finder/match.c index 5385931..a151093 100644 --- a/source/modest/finder/match.c +++ b/source/modest/finder/match.c @@ -90,7 +90,7 @@ bool modest_finder_match_attribute_ws(myhtml_token_attr_t* attr, const char* key while(i < attr->value.length) { begin = i; - while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], !=, ||)) {i++;} + while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], !=, &&)) {i++;} if((i - begin) == value_len && (mycore_strncmp(value, &attr->value.data[begin], value_len) == 0)) { return true; @@ -103,7 +103,7 @@ bool modest_finder_match_attribute_ws(myhtml_token_attr_t* attr, const char* key while(i < attr->value.length) { begin = i; - while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], !=, ||)) {i++;} + while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], !=, &&)) {i++;} if((i - begin) == value_len && (mycore_strncasecmp(value, &attr->value.data[begin], value_len) == 0)) { return true; |