mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Initialize variable to avoid false positive in coverity
We now that plotInfo.nr will always be positive. Still, this is cheap and shuts up the "defect". Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c01c35ca0c
commit
52ee5f28c2
1 changed files with 1 additions and 1 deletions
|
@ -1151,7 +1151,7 @@ struct plot_data *ProfileWidget2::getEntryFromPos(QPointF pos)
|
|||
{
|
||||
// find the time stamp corresponding to the mouse position
|
||||
int seconds = timeAxis->valueAt(pos);
|
||||
struct plot_data *entry;
|
||||
struct plot_data *entry = NULL;
|
||||
|
||||
for (int i = 0; i < plotInfo.nr; i++) {
|
||||
entry = plotInfo.entry + i;
|
||||
|
|
Loading…
Reference in a new issue