Merge branch 'maint'
* maint: Update draft release notes to 1.7.1.1 notes: Initialise variable to appease gcc notes: check number of parameters to "git notes copy"
This commit is contained in:
2
notes.c
2
notes.c
@ -716,7 +716,7 @@ static int write_each_non_note_until(const char *note_path,
|
||||
struct write_each_note_data *d)
|
||||
{
|
||||
struct non_note *n = d->next_non_note;
|
||||
int cmp, ret;
|
||||
int cmp = 0, ret;
|
||||
while (n && (!note_path || (cmp = strcmp(n->path, note_path)) <= 0)) {
|
||||
if (note_path && cmp == 0)
|
||||
; /* do nothing, prefer note to non-note */
|
||||
|
||||
Reference in New Issue
Block a user