Changeset 24501


Ignore:
Timestamp:
01/07/20 16:22:13 (5 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixed syntax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/wrappers/python/io/FetchPythonData.cpp

    r24500 r24501  
    12961296void FetchData(char** pstring,PyObject* py_string){
    12971297
    1298         const char* string=NULL;
    1299 
    13001298        /*extract internal string: */
    13011299        #if _PYTHON_MAJOR_ == 3
    1302         string=PyUnicode_AsUTF8(py_string);
     1300        const char* string=PyUnicode_AsUTF8(py_string);
    13031301        #else
    1304         string=PyString_AsString(py_string);
     1302        const char* string=PyString_AsString(py_string);
    13051303        #endif
    13061304        /*copy string (note strlen does not include trailing NULL): */
Note: See TracChangeset for help on using the changeset viewer.