From 6a7b1a73a7bcc4e4e6ee3a2343fd11b2453aefb1 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 16 Apr 2009 12:49:49 +0000 Subject: Fix compilation with GCC 2.95. It astounds me how some of this lot compiled at all. svn path=/trunk/netsurf/; revision=7104 --- render/hubbub_binding.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'render/hubbub_binding.c') 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) { -- cgit v1.2.3