PATCH: bonobo-activation core dump on Solaris



Hi,

The initialisation below is not valid using the Forte C compiler. The
structure remains uninitialised and causes bonobo-activation to core dump.

May I commit?

Laca


Index: ChangeLog
===================================================================
RCS file: /sgnome/cvsroots/GNOME/bonobo-activation/ChangeLog,v
retrieving revision 1.249
diff -u -r1.249 ChangeLog
--- ChangeLog	2001/11/29 08:04:38	1.249
+++ ChangeLog	2001/11/30 19:19:02
@@ -1,3 +1,8 @@
+2001-11-30  Laszlo Peter  <laca ireland sun com>
+
+	* bonobo-activation/bonobo-activation-init.c: fix initialization
+	  of base_service
+
 2001-11-29  Mark McLoughlin  <mark skynet ie>
 
 	* api-docs/server-xml-reference.sgml: expand desription of
Index: bonobo-activation/bonobo-activation-init.c
===================================================================
RCS file: /sgnome/cvsroots/GNOME/bonobo-activation/bonobo-activation/bonobo-activation-init.c,v
retrieving revision 1.41
diff -u -r1.41 bonobo-activation-init.c
--- bonobo-activation/bonobo-activation-init.c	2001/10/31 00:58:41	1.41
+++ bonobo-activation/bonobo-activation-init.c	2001/11/30 19:19:02
@@ -174,7 +174,7 @@
 bonobo_activation_internal_activation_context_get_extended (gboolean           existing_only,
                                                             CORBA_Environment *ev)
 {
-	BonoboActivationBaseService base_service = {};
+	BonoboActivationBaseService base_service = {NULL, NULL, NULL, NULL, NULL};
 
 	base_service.name = "IDL:Bonobo/ActivationContext:1.0";
 	base_service.session_name = bonobo_activation_session_name_get ();
@@ -187,7 +187,7 @@
 CORBA_Object
 bonobo_activation_activation_context_get (void)
 {
-	BonoboActivationBaseService base_service = {};
+	BonoboActivationBaseService base_service = {NULL, NULL, NULL, NULL, NULL};
 
 	base_service.name = "IDL:Bonobo/ActivationContext:1.0";
 	base_service.session_name = bonobo_activation_session_name_get ();
@@ -201,7 +201,7 @@
                           const char *hostname,
                           const char *domain)
 {
-        BonoboActivationBaseService base_service = {};
+        BonoboActivationBaseService base_service = {NULL, NULL, NULL, NULL, NULL};
 
         base_service.name = "IDL:Bonobo/ObjectDirectory:1.0";
         base_service.session_name = bonobo_activation_session_name_get ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]