Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lexborisov/Modest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlexborisov <lex.borisov@gmail.com>2017-03-14 00:07:22 +0300
committerlexborisov <lex.borisov@gmail.com>2017-03-14 00:07:22 +0300
commit5d39ca65f9cfc508139e6140dd247c4c3a3d8284 (patch)
treea6119b11b043160dc24809b8f042f720df037f85
parentea568bb78657a596ee5beb8348159e1ebcb3a8a7 (diff)
Fixes for https://github.com/lexborisov/Modest/issues/15
-rw-r--r--source/modest/finder/match.c4
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;