mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-27 12:15:34 +03:00
Don't ignore xmllint options after "-"
There's no reason to ignore options after "-". This was probably confused with the "--" mechanism which xmllint doesn't implement. Fixes #290.
This commit is contained in:
@@ -3181,8 +3181,6 @@ main(int argc, char **argv) {
|
|||||||
|
|
||||||
/* xmlMemSetup must be called before initializing the parser. */
|
/* xmlMemSetup must be called before initializing the parser. */
|
||||||
for (i = 1; i < argc ; i++) {
|
for (i = 1; i < argc ; i++) {
|
||||||
if (!strcmp(argv[i], "-"))
|
|
||||||
break;
|
|
||||||
if (argv[i][0] != '-')
|
if (argv[i][0] != '-')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@@ -3200,11 +3198,9 @@ main(int argc, char **argv) {
|
|||||||
LIBXML_TEST_VERSION
|
LIBXML_TEST_VERSION
|
||||||
|
|
||||||
for (i = 1; i < argc ; i++) {
|
for (i = 1; i < argc ; i++) {
|
||||||
if (!strcmp(argv[i], "-"))
|
|
||||||
break;
|
|
||||||
|
|
||||||
if (argv[i][0] != '-')
|
if (argv[i][0] != '-')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ((!strcmp(argv[i], "-debug")) || (!strcmp(argv[i], "--debug")))
|
if ((!strcmp(argv[i], "-debug")) || (!strcmp(argv[i], "--debug")))
|
||||||
debug++;
|
debug++;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user