Commit 94156807 authored by Miguel de Icaza's avatar Miguel de Icaza Committed by Arturo Espinosa

Do not crash if the file is a broken XML file.

1999-04-13  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/xml-io.c (xml_probe): Do not crash if the file is a broken
	XML file.
parent b0a8426e
1999-04-13 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/xml-io.c (xml_probe): Do not crash if the file is a broken
XML file.
1999-04-13 Zbigniew Chyla <cyba@t19.ds.pwr.wroc.pl>
* src/workbook.c: using 'gnome_dialog_run_and_close' instead of
......
1999-04-13 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/xml-io.c (xml_probe): Do not crash if the file is a broken
XML file.
1999-04-13 Zbigniew Chyla <cyba@t19.ds.pwr.wroc.pl>
* src/workbook.c: using 'gnome_dialog_run_and_close' instead of
......
1999-04-13 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/xml-io.c (xml_probe): Do not crash if the file is a broken
XML file.
1999-04-13 Zbigniew Chyla <cyba@t19.ds.pwr.wroc.pl>
* src/workbook.c: using 'gnome_dialog_run_and_close' instead of
......
1999-04-13 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/xml-io.c (xml_probe): Do not crash if the file is a broken
XML file.
1999-04-13 Zbigniew Chyla <cyba@t19.ds.pwr.wroc.pl>
* src/workbook.c: using 'gnome_dialog_run_and_close' instead of
......
......@@ -22,4 +22,8 @@ gnumeric_arg_parse (int argc, char *argv [])
gnome_CORBA_init_with_popt_table (
"gnumeric", VERSION, &argc, argv, gnumeric_popt_options, 0, &ctx, 0, &ev);
if (bonobo_init (gnome_CORBA_ORB (), NULL, NULL) == FALSE){
g_error ("Failure starting up Bonobo");
}
}
......@@ -1623,7 +1623,7 @@ xml_probe (const char *filename)
return FALSE;
gmr = xmlSearchNsByHref (res, res->root, "http://www.gnome.org/gnumeric/");
if (strcmp (res->root->name, "Workbook") || (gmr == NULL)){
if (res->root->name == NULL || strcmp (res->root->name, "Workbook") || (gmr == NULL)){
xmlFreeDoc (res);
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment