[fdo-trac] #40: Potential comparison to uninitialized object in FdoCommonQueryAggregator

FDO trac_fdo at osgeo.org
Tue Mar 13 12:26:14 EDT 2007


#40: Potential comparison to uninitialized object in FdoCommonQueryAggregator
-----------------------+----------------------------------------------------
   Reporter:  mloskot  |       Owner:  gregboone
       Type:  defect   |      Status:  new      
   Priority:  minor    |   Milestone:  3.3.0    
  Component:  FDO API  |     Version:  3.2.0    
   Severity:  3        |    Keywords:           
External_id:           |  
-----------------------+----------------------------------------------------
 In file ''Utilities\Common\Src\FdoCommonQueryAggregator.cpp'', line 280,
 there is following declaration:

 {{{
 FdoDataType resultDataType;
 }}}

 If next condition is false, the resultDataType stays uninitialized and
 comparison in line 310 may cause problems:

 {{{
 if (resultDataType==FdoDataType_String)
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/fdo/ticket/40>
FDO <http://fdo.osgeo.org/>
Feature Data Objects


More information about the fdo-trac mailing list