]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
TC6.3.0: SIGSEGV calling copy-paste of objects
authoreap <eap@opencascade.com>
Thu, 12 May 2011 08:48:17 +0000 (08:48 +0000)
committereap <eap@opencascade.com>
Thu, 12 May 2011 08:48:17 +0000 (08:48 +0000)
   void notifyObserverID_real(const std::string& theID, long event)
   {
-    SalomeApp_DataObject* suit_obj;
+    SalomeApp_DataObject* suit_obj = 0;

src/SalomeApp/SalomeApp_Study.cxx

index 64f0c4173d8d3f090ba2f93de74083840dd122d8..f9230060fc28f736b9eedf44acfc8f560b001156 100644 (file)
@@ -109,7 +109,7 @@ public:
 
   void notifyObserverID_real(const std::string& theID, long event)
   {
-    SalomeApp_DataObject* suit_obj;
+    SalomeApp_DataObject* suit_obj = 0;
     
     switch(event) {      
     case 1: