diff options
author | lexborisov <lex.borisov@gmail.com> | 2016-11-22 15:53:16 +0300 |
---|---|---|
committer | lexborisov <lex.borisov@gmail.com> | 2016-11-22 15:53:16 +0300 |
commit | 784bf46e82fe93aa1642bc850c261ab2ead6e7b3 (patch) | |
tree | 870d66e8d3826b35a17e9a7a24be6705e6982319 /source/modest/finder | |
parent | e58c56a72ba9fdc1ed444f589233f109dd01f2fb (diff) |
small fix
Diffstat (limited to 'source/modest/finder')
-rw-r--r-- | source/modest/finder/type.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/modest/finder/type.c b/source/modest/finder/type.c index c2c716b..068ae55 100644 --- a/source/modest/finder/type.c +++ b/source/modest/finder/type.c @@ -92,7 +92,10 @@ bool modest_finder_selector_type_attribute(modest_finder_t* finder, myhtml_tree_ mycss_selectors_object_attribute_t *sel_attr = mycss_selector_value_attribute(selector->value); - if(sel_attr && sel_attr->value) { + if(sel_attr) { + if(sel_attr->value == NULL) + return false; + if(sel_attr->match < MyCSS_SELECTORS_MATCH_LAST_ENTRY) return modest_finder_static_selector_match_map[sel_attr->match](node->token->attr_first, selector->key->data, selector->key->length, |