[gnome-builder] xml-pack: fix validator return condition
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] xml-pack: fix validator return condition
- Date: Thu, 14 Sep 2017 20:46:30 +0000 (UTC)
commit 46b3d345473d6f99b5f8e7e82688e829de56600a
Author: Sebastien Lafargue <slafargue gnome org>
Date: Thu Sep 14 22:40:10 2017 +0200
xml-pack: fix validator return condition
The libxml2 rng parser return 0 when there's no errors.
plugins/xml-pack/ide-xml-tree-builder.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/xml-pack/ide-xml-tree-builder.c b/plugins/xml-pack/ide-xml-tree-builder.c
index 11ea220..c98bbfc 100644
--- a/plugins/xml-pack/ide-xml-tree-builder.c
+++ b/plugins/xml-pack/ide-xml-tree-builder.c
@@ -351,7 +351,7 @@ ide_xml_tree_builder_parse_worker (GTask *task,
continue;
}
- if (!ide_xml_validator_validate (self->validator, doc, &diagnostics))
+ if (ide_xml_validator_validate (self->validator, doc, &diagnostics) != 0)
{
if (entry->file == NULL)
msg = g_strdup_printf ("Can't validate the internal schema");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]