Don't try to archive the data if the archive is NULL

2001-08-23  Bradford Hovinen  <hovinen@ximian.com>

	* main.c: (store_archive_data): Don't try to archive the data
	if the archive is NULL
This commit is contained in:
Bradford Hovinen 2001-08-23 19:16:03 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent 768a3d5a46
commit 74b7c332bc
2 changed files with 5 additions and 0 deletions

View file

@ -1,6 +1,8 @@
2001-08-23 Bradford Hovinen <hovinen@ximian.com> 2001-08-23 Bradford Hovinen <hovinen@ximian.com>
* main.c: Port to new CORBA interface * main.c: Port to new CORBA interface
(store_archive_data): Don't try to archive the data if the archive
is NULL
2001-08-19 Abel Cheung <maddog@linux.org.hk> 2001-08-19 Abel Cheung <maddog@linux.org.hk>

View file

@ -67,6 +67,9 @@ store_archive_data (void)
xmlDocPtr xml_doc; xmlDocPtr xml_doc;
CORBA_Environment ev; CORBA_Environment ev;
if (archive == CORBA_OBJECT_NIL)
return;
CORBA_exception_init (&ev); CORBA_exception_init (&ev);
if (capplet_get_location () == NULL) if (capplet_get_location () == NULL)