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>2016-11-22 15:53:16 +0300
committerlexborisov <lex.borisov@gmail.com>2016-11-22 15:53:16 +0300
commit784bf46e82fe93aa1642bc850c261ab2ead6e7b3 (patch)
tree870d66e8d3826b35a17e9a7a24be6705e6982319 /source/modest/finder
parente58c56a72ba9fdc1ed444f589233f109dd01f2fb (diff)
small fix
Diffstat (limited to 'source/modest/finder')
-rw-r--r--source/modest/finder/type.c5
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,