mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
match_attribute_selectors(): Fix warning about uninitialized attr variable
Outspitten on FreeBSD.
This commit is contained in:
parent
5ca5381fbc
commit
3b412553b6
@ -611,6 +611,7 @@ match_attribute_selectors(struct dom_select_node *base, struct dom_node *node)
|
||||
if (has_attribute_match(selector, DOM_SELECT_ATTRIBUTE_ID)) {
|
||||
size_t idindex;
|
||||
|
||||
attr = NULL;
|
||||
foreach_dom_node (attrs, attr, idindex) {
|
||||
if (attr->data.attribute.id)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user