diff options
author | Daniel Veillard <veillard@redhat.com> | 2013-07-22 14:24:16 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2013-07-22 14:24:16 +0800 |
commit | ccc9cf9276d9f603f01302da885155556d236b56 (patch) | |
tree | 05bf6988fcfae561e77297643778eae06d67e196 /debugXML.c | |
parent | b9e4d5b6395f9aa0a34cb74e9a3672a20d37b943 (diff) | |
download | libxml2-ccc9cf9276d9f603f01302da885155556d236b56.tar.gz |
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
Diffstat (limited to 'debugXML.c')
-rw-r--r-- | debugXML.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |