mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
616478 Fix xmllint shell write command
The current node wasn't passed down !
This commit is contained in:
committed by
Daniel Veillard
parent
d4b5447141
commit
ce5f9a7d6b
@ -2941,7 +2941,7 @@ xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,
|
|||||||
xmlGenericError(xmlGenericErrorContext,
|
xmlGenericError(xmlGenericErrorContext,
|
||||||
"Write command requires a filename argument\n");
|
"Write command requires a filename argument\n");
|
||||||
else
|
else
|
||||||
xmlShellWrite(ctxt, arg, NULL, NULL);
|
xmlShellWrite(ctxt, arg, ctxt->node, NULL);
|
||||||
#endif /* LIBXML_OUTPUT_ENABLED */
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
||||||
} else if (!strcmp(command, "grep")) {
|
} else if (!strcmp(command, "grep")) {
|
||||||
xmlShellGrep(ctxt, arg, ctxt->node, NULL);
|
xmlShellGrep(ctxt, arg, ctxt->node, NULL);
|
||||||
|
Reference in New Issue
Block a user