Changeset bb86d13 in subsurface


Ignore:
Timestamp:
Feb 1, 2017, 2:43:27 PM (8 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
1dc703f
Parents:
49cf493
git-author:
Robert C. Helling <helling@…> (02/01/17 12:27:43)
git-committer:
Dirk Hohndel <dirk@…> (02/01/17 14:43:27)
Message:

Initialize the surface time

Otherwise we return garbage when there is no dive in the dive list.

Closes #184

Signed-off-by: Robert C. Helling <helling@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/divelist.c

    r4359974 rbb86d13  
    365365{
    366366        int i, divenr = -1;
    367         unsigned int surface_time;
     367        unsigned int surface_time = 0;
    368368        timestamp_t when, lasttime = 0, laststart = 0;
    369369        bool deco_init = false;
Note: See TracChangeset for help on using the changeset viewer.