mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +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")) {
|
||||
xmlShellSave(ctxt, arg, NULL, NULL);
|
||||
} else if (!strcmp(command, "write")) {
|
||||
if ((arg == NULL) || (arg[0] == 0))
|
||||
if (arg[0] == 0)
|
||||
xmlGenericError(xmlGenericErrorContext,
|
||||
"Write command requires a filename argument\n");
|
||||
else
|
||||
|
Reference in New Issue
Block a user