Skip to content

Commit

Permalink
make build options.c with VS2008 compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
jun66j5 committed Apr 28, 2014
1 parent d882af8 commit c68de8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c68de8e

Please sign in to comment.