Revision: 8837
          http://playerstage.svn.sourceforge.net/playerstage/?rev=8837&view=rev
Author:   jpgr87
Date:     2010-07-29 00:58:47 +0000 (Thu, 29 Jul 2010)

Log Message:
-----------
Applied patch #3035834: Fix laserbar driver

Modified Paths:
--------------
    code/player/trunk/server/drivers/fiducial/laserbar.cc

Modified: code/player/trunk/server/drivers/fiducial/laserbar.cc
===================================================================
--- code/player/trunk/server/drivers/fiducial/laserbar.cc       2010-07-28 
15:38:26 UTC (rev 8836)
+++ code/player/trunk/server/drivers/fiducial/laserbar.cc       2010-07-29 
00:58:47 UTC (rev 8837)
@@ -284,7 +284,11 @@
     this->ldata.resolution = laser_data->resolution;
     this->ldata.max_range = laser_data->max_range;
     this->ldata.ranges_count = laser_data->ranges_count;
+    if (this->ldata.ranges == NULL)
+       this->ldata.ranges = new float [this->ldata.ranges_count];
     this->ldata.intensity_count = laser_data->intensity_count;
+    if (this->ldata.intensity == NULL)
+       this->ldata.intensity = new uint8_t [this->ldata.intensity_count];
 
     for (unsigned int i = 0; i < laser_data->ranges_count; i++)
     {


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

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to