mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
bug fixes, bugfixes, bugfixes ...
- parser.c: Fixed Bug#21552: libxml fails to decode & - uri.c testUri.c patches, by Marc Sanfacon (1 left) - parser.c HTMLparser.c: HTML/encoding push problems reportedi by Wayne Davison Daniel
This commit is contained in:
@ -27,6 +27,10 @@ int main(int argc, char **argv) {
|
||||
const char *base = NULL;
|
||||
xmlChar *composite;
|
||||
|
||||
if (argv[arg] == NULL) {
|
||||
printf("Usage: %s [-base URI] URI ...\n", argv[0]);
|
||||
exit(0);
|
||||
}
|
||||
if ((!strcmp(argv[arg], "-base")) || (!strcmp(argv[arg], "--base"))) {
|
||||
arg++;
|
||||
base = argv[arg];
|
||||
@ -78,8 +82,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
} else {
|
||||
composite = xmlBuildURI((xmlChar *)argv[arg], (xmlChar *) base);
|
||||
if (base == NULL) {
|
||||
} else {
|
||||
if (composite != NULL) {
|
||||
printf("%s\n", composite);
|
||||
xmlFree(composite);
|
||||
}
|
||||
|
Reference in New Issue
Block a user