Revision: 7795
          http://playerstage.svn.sourceforge.net/playerstage/?rev=7795&view=rev
Author:   robotos
Date:     2009-06-06 01:27:44 +0000 (Sat, 06 Jun 2009)

Log Message:
-----------
Fix assert. Patch 2800395 by Tanaka Akira

Modified Paths:
--------------
    code/gazebo/trunk/player/GazeboClient.cc

Modified: code/gazebo/trunk/player/GazeboClient.cc
===================================================================
--- code/gazebo/trunk/player/GazeboClient.cc    2009-06-06 01:26:07 UTC (rev 
7794)
+++ code/gazebo/trunk/player/GazeboClient.cc    2009-06-06 01:27:44 UTC (rev 
7795)
@@ -74,9 +74,14 @@
 
   // steal the global clock - a bit aggressive, but a simple approach
   if (GlobalTime)
+  {
     delete GlobalTime;
-  assert((GlobalTime = new GazeboTime()));
+    GlobalTime = NULL;
+  }
 
+  GlobalTime = new GazeboTime();
+  assert(GlobalTime != 0);
+
 }
 
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to