1
0
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:
Jonas Fonseca 2005-12-19 22:13:23 +01:00 committed by Jonas Fonseca
parent 5ca5381fbc
commit 3b412553b6

View File

@ -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;