Skip to content

Commit db94093

Browse files
committed
make remote.c build with VS compiler 2008
1 parent 140305e commit db94093

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/remote.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ get_strarraygit_from_pylist(git_strarray *array, PyObject *pylist)
267267
Py_ssize_t index, n;
268268
PyObject *item;
269269
void *ptr;
270+
char *str;
270271

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

288289
for (index = 0; index < n; index++) {
289290
item = PyList_GetItem(pylist, index);
290-
char *str = py_str_to_c_str(item, NULL);
291+
str = py_str_to_c_str(item, NULL);
291292
if (!str)
292293
goto on_error;
293294

0 commit comments

Comments
 (0)