Changeset 10591

Show
Ignore:
Timestamp:
01/10/07 14:03:26 (2 years ago)
Author:
dmorissette
Message:

CPLStrdup() the value assigned to pszNameField (bug 1432)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ogr/ogrsf_frmts/kml/ogrkmldatasource.cpp

    r9945 r10591  
    2929 * 
    3030 * $Log$ 
     31 * Revision 1.5  2007/01/10 19:03:26  dmorissette 
     32 * CPLStrdup() the value assigned to pszNameField (bug 1432) 
     33 * 
    3134 * Revision 1.4  2006/08/04 19:36:03  fwarmerdam 
    3235 * Initialize pszNameField. 
     
    161164    } 
    162165 
    163     pszNameField = (char *)CSLFetchNameValue(papszOptions, "NameField"); 
     166    pszNameField = CPLStrdup(CSLFetchNameValue(papszOptions, "NameField")); 
    164167    CPLDebug("KML", "Using the field '%s' for name element", pszNameField); 
    165168