summaryrefslogtreecommitdiff
path: root/render/hubbub_binding.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/hubbub_binding.c')
-rw-r--r--render/hubbub_binding.c4
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) {