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;
PyObject *py_path;
int error;
char *tmp;
do {
len *= 2;
char *tmp = realloc(buf, len);
tmp = realloc(buf, len);
if (!tmp) {
free(buf);
PyErr_NoMemory();