Fix PEP-7

This commit is contained in:
Jose Plana
2013-11-25 14:03:37 +01:00
parent 336f042e22
commit ea8901f417

View File

@@ -87,7 +87,7 @@ Remote_name__set__(Remote *self, PyObject* py_name)
free(name);
if (err == GIT_OK)
return 0;
return 0;
Error_set(err);
}
@@ -167,13 +167,13 @@ get_strarraygit_from_pylist(git_strarray *array, PyObject *pylist)
n = PyObject_Length(pylist);
if (n < 0)
return -1;
return -1;
// allocate new git_strarray
void *ptr = calloc(n, sizeof(char *));
if (!ptr)
return -1;
return -1;
array->strings = ptr;
array->count = n;