make build options.c with VS2008 compiler

This commit is contained in:
Jun Omae
2014-04-28 16:24:49 +09:00
parent d882af8f52
commit c68de8e2b8

View File

@@ -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();