Skip to content

make remote.c build with VS compiler 2008 #343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 12, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ get_strarraygit_from_pylist(git_strarray *array, PyObject *pylist)
Py_ssize_t index, n;
PyObject *item;
void *ptr;
char *str;

if (!PyList_Check(pylist)) {
PyErr_SetString(PyExc_TypeError, "Value must be a list");
Expand All @@ -287,7 +288,7 @@ get_strarraygit_from_pylist(git_strarray *array, PyObject *pylist)

for (index = 0; index < n; index++) {
item = PyList_GetItem(pylist, index);
char *str = py_str_to_c_str(item, NULL);
str = py_str_to_c_str(item, NULL);
if (!str)
goto on_error;

Expand Down