mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
Fix a wrong test
https://bugzilla.gnome.org/show_bug.cgi?id=704530 Arg is an array on the stack and can't be NULL
This commit is contained in:
@ -2946,7 +2946,7 @@ xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,
|
|||||||
} else if (!strcmp(command, "save")) {
|
} else if (!strcmp(command, "save")) {
|
||||||
xmlShellSave(ctxt, arg, NULL, NULL);
|
xmlShellSave(ctxt, arg, NULL, NULL);
|
||||||
} else if (!strcmp(command, "write")) {
|
} else if (!strcmp(command, "write")) {
|
||||||
if ((arg == NULL) || (arg[0] == 0))
|
if (arg[0] == 0)
|
||||||
xmlGenericError(xmlGenericErrorContext,
|
xmlGenericError(xmlGenericErrorContext,
|
||||||
"Write command requires a filename argument\n");
|
"Write command requires a filename argument\n");
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user