diff options
Diffstat (limited to 'src/select/select.c')
-rw-r--r-- | src/select/select.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/select/select.c b/src/select/select.c index e46134c..8488b74 100644 --- a/src/select/select.c +++ b/src/select/select.c @@ -964,14 +964,15 @@ printf(" \t%s\tno share: node id (%s)\n", lwc_string_data(state->element.na type, sharable_node_data); if (error != CSS_OK) { return error; - } else { - if (sharable_node_data == NULL) { - /* Can't share with this; look for another */ - continue; - } else { - break; - } } + + if (*sharable_node_data != NULL) { + /* Found style date we can share */ + break; + } + + /* Can't share with this; look for another */ + node = share_candidate_node; } return CSS_OK; |