summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenn Kahz <gwenn.kahz@gmail.com>2010-11-04 09:48:25 (GMT)
committerDaniel Veillard <veillard@redhat.com>2010-11-04 09:48:25 (GMT)
commitce5f9a7d6b74aa4c026819efdf549d4046ce26a2 (patch)
treec06ee4e740de0be42c1a8e293feac646925703f6
parentd4b54471417878a6d06e79e43a4f7afb7ba69fdd (diff)
downloadlibxml2-ce5f9a7d6b74aa4c026819efdf549d4046ce26a2.tar.gz
libxml2-ce5f9a7d6b74aa4c026819efdf549d4046ce26a2.tar.xz
616478 Fix xmllint shell write command
The current node wasn't passed down !
-rw-r--r--debugXML.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debugXML.c b/debugXML.c
index 415889a..c26217a 100644
--- a/debugXML.c
+++ b/debugXML.c
@@ -2941,7 +2941,7 @@ xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,
xmlGenericError(xmlGenericErrorContext,
"Write command requires a filename argument\n");
else
- xmlShellWrite(ctxt, arg, NULL, NULL);
+ xmlShellWrite(ctxt, arg, ctxt->node, NULL);
#endif /* LIBXML_OUTPUT_ENABLED */
} else if (!strcmp(command, "grep")) {
xmlShellGrep(ctxt, arg, ctxt->node, NULL);