Changeset 11884

Show
Ignore:
Timestamp:
08/15/07 10:16:54 (1 year ago)
Author:
mloskot
Message:

Manual fix of bug in pymod/gdal.i (Ticket #1718). Also, the Ticket #1718 has been reassigned back to Frank because it needs to be addressed once again.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gdal/pymod/gdal.i

    r10098 r11884  
    22902290         
    22912291    err = OSRExportToProj4( _arg0, &wkt ); 
    2292     if( wkt == NULL ) 
    2293         wkt = ""; 
    2294  
    2295     ret = Py_BuildValue( "s", wkt ); 
    2296     OGRFree( wkt ); 
     2292    if( wkt != NULL ) 
     2293    { 
     2294        ret = Py_BuildValue( "s", wkt ); 
     2295        OGRFree( wkt ); 
     2296    } 
     2297    else 
     2298    { 
     2299        ret = Py_BuildValue( "s", ""); 
     2300    } 
     2301 
    22972302    return ret; 
    22982303}