make build options.c with VS2008 compiler
This commit is contained in:
@@ -41,10 +41,11 @@ get_search_path(long level)
|
|||||||
size_t len = 64;
|
size_t len = 64;
|
||||||
PyObject *py_path;
|
PyObject *py_path;
|
||||||
int error;
|
int error;
|
||||||
|
char *tmp;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
len *= 2;
|
len *= 2;
|
||||||
char *tmp = realloc(buf, len);
|
tmp = realloc(buf, len);
|
||||||
if (!tmp) {
|
if (!tmp) {
|
||||||
free(buf);
|
free(buf);
|
||||||
PyErr_NoMemory();
|
PyErr_NoMemory();
|
||||||
|
Reference in New Issue
Block a user