- Timestamp:
- 11/07/10 20:28:07 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pymigemo/pymigemo.c
r40 r41 195 195 query = strdup(PyString_AS_STRING(q)); 196 196 Py_DECREF(q); 197 198 if (query == NULL) { 199 return PyErr_NoMemory(); 200 } 197 201 } 198 202 else if (PyString_Check(pyquery)) { 199 203 query = strdup(PyString_AS_STRING(pyquery)); 204 205 if (query == NULL) { 206 return PyErr_NoMemory(); 207 } 200 208 } 201 209 else { 202 210 PyErr_SetString(PyExc_ValueError, "argument must be string"); 203 return NULL;204 }205 if (query == NULL) {206 211 return NULL; 207 212 }
Note: See TracChangeset
for help on using the changeset viewer.