summaryrefslogtreecommitdiff
path: root/xmllint.c
diff options
context:
space:
mode:
Diffstat (limited to 'xmllint.c')
-rw-r--r--xmllint.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmllint.c b/xmllint.c
index 02042382..e283b80d 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -2022,8 +2022,9 @@ static void doXPathDump(xmlXPathObjectPtr cur) {
xmlOutputBufferPtr buf;
if ((cur->nodesetval == NULL) || (cur->nodesetval->nodeNr <= 0)) {
- fprintf(stderr, "XPath set is empty\n");
- progresult = XMLLINT_ERR_XPATH;
+ if (!quiet) {
+ fprintf(stderr, "XPath set is empty\n");
+ }
break;
}
buf = xmlOutputBufferCreateFile(stdout, NULL);