From 3b412553b6830056e8183f5d3e633dd2a49cb854 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Mon, 19 Dec 2005 22:13:23 +0100 Subject: [PATCH] match_attribute_selectors(): Fix warning about uninitialized attr variable Outspitten on FreeBSD. --- src/document/dom/select.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/document/dom/select.c b/src/document/dom/select.c index f5af0acb..8cd08b15 100644 --- a/src/document/dom/select.c +++ b/src/document/dom/select.c @@ -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;