diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-04-16 12:49:49 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-04-16 12:49:49 +0000 |
commit | 6a7b1a73a7bcc4e4e6ee3a2343fd11b2453aefb1 (patch) | |
tree | de7b79a609c26b5deb62d0b1b0139ef2513528c1 /render/hubbub_binding.c | |
parent | 3a12ed0facbdbc79b358d48d78f158a735ee6158 (diff) | |
download | netsurf-6a7b1a73a7bcc4e4e6ee3a2343fd11b2453aefb1.tar.gz netsurf-6a7b1a73a7bcc4e4e6ee3a2343fd11b2453aefb1.tar.bz2 |
Fix compilation with GCC 2.95.
It astounds me how some of this lot compiled at all.
svn path=/trunk/netsurf/; revision=7104
Diffstat (limited to 'render/hubbub_binding.c')
-rw-r--r-- | render/hubbub_binding.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/render/hubbub_binding.c b/render/hubbub_binding.c index 3bab8f260..a99bcf7cb 100644 --- a/render/hubbub_binding.c +++ b/render/hubbub_binding.c @@ -864,7 +864,7 @@ struct form_control *parse_input_element(xmlNode *node) if (control->type == GADGET_CHECKBOX || control->type == GADGET_RADIO) { control->selected = - xmlHasProp(node, (const xmlChar *) "checked"); + xmlHasProp(node, (const xmlChar *) "checked") != NULL; } if (control->type == GADGET_PASSWORD || @@ -983,7 +983,7 @@ struct form_control *parse_select_element(xmlNode *node) return NULL; control->data.select.multiple = - xmlHasProp(node, (const xmlChar *) "multiple"); + xmlHasProp(node, (const xmlChar *) "multiple") != NULL; name = xmlGetProp(node, (const xmlChar *) "name"); if (name != NULL) { |