mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-24 21:33:51 +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:
parent
5408c10c37
commit
d12be00da8
@ -3181,8 +3181,6 @@ main(int argc, char **argv) {
|
||||
|
||||
/* xmlMemSetup must be called before initializing the parser. */
|
||||
for (i = 1; i < argc ; i++) {
|
||||
if (!strcmp(argv[i], "-"))
|
||||
break;
|
||||
if (argv[i][0] != '-')
|
||||
continue;
|
||||
|
||||
@ -3200,11 +3198,9 @@ main(int argc, char **argv) {
|
||||
LIBXML_TEST_VERSION
|
||||
|
||||
for (i = 1; i < argc ; i++) {
|
||||
if (!strcmp(argv[i], "-"))
|
||||
break;
|
||||
|
||||
if (argv[i][0] != '-')
|
||||
continue;
|
||||
|
||||
if ((!strcmp(argv[i], "-debug")) || (!strcmp(argv[i], "--debug")))
|
||||
debug++;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user