File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -296,14 +296,14 @@ Diff_patch__get__(Diff *self)
296
296
git_patch * patch ;
297
297
git_buf buf = {NULL };
298
298
int err = GIT_ERROR ;
299
- size_t i , len , num ;
299
+ size_t i , num ;
300
300
PyObject * py_patch = NULL ;
301
301
302
302
num = git_diff_num_deltas (self -> diff );
303
303
if (num == 0 )
304
304
Py_RETURN_NONE ;
305
305
306
- for (i = 0 , len = 1 ; i < num ; ++ i ) {
306
+ for (i = 0 ; i < num ; ++ i ) {
307
307
err = git_patch_from_diff (& patch , self -> diff , i );
308
308
if (err < 0 )
309
309
goto cleanup ;
Original file line number Diff line number Diff line change @@ -103,8 +103,8 @@ typedef struct {
103
103
typedef struct {
104
104
PyObject_HEAD
105
105
PyObject * hunks ;
106
- const char * old_file_path ;
107
- const char * new_file_path ;
106
+ char * old_file_path ;
107
+ char * new_file_path ;
108
108
PyObject * old_id ;
109
109
PyObject * new_id ;
110
110
char status ;
You can’t perform that action at this time.
0 commit comments