diff options
Diffstat (limited to 'subsurface-core/divelist.c')
-rw-r--r-- | subsurface-core/divelist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subsurface-core/divelist.c b/subsurface-core/divelist.c index 7ae5e8373..400867882 100644 --- a/subsurface-core/divelist.c +++ b/subsurface-core/divelist.c @@ -854,7 +854,7 @@ struct dive *merge_two_dives(struct dive *a, struct dive *b) // renumber dives from merged one in advance by difference between // merged dives numbers. Do not renumber if actual number is zero. - for (j; j < dive_table.nr; j++) + for (; j < dive_table.nr; j++) if (!dive_table.dives[j]->number == 0) dive_table.dives[j]->number -= factor; |