Skip to content

Commit b9e10df

Browse files
committed
Merge pull request #1737 from MarcSabatella/mtest-fix
fix uninitialized variable
2 parents 1f6e959 + fa46cd2 commit b9e10df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libmscore/select.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -996,6 +996,8 @@ static bool checkStart(Element* e)
996996
if (chord->tremolo() && chord->tremolo()->twoNotes())
997997
rv = chord->tremolo()->chord2() == chord;
998998
}
999+
else
1000+
rv = false;
9991001
return rv;
10001002
}
10011003

@@ -1028,6 +1030,8 @@ static bool checkEnd(Element* e)
10281030
if (chord->tremolo() && chord->tremolo()->twoNotes())
10291031
rv = chord->tremolo()->chord1() == chord;
10301032
}
1033+
else
1034+
rv = false;
10311035
return rv;
10321036
}
10331037

0 commit comments

Comments
 (0)