diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-16 09:09:06 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-16 09:10:11 -0700 |
commit | 1ba901fed670ecf55e44b0d8aafb78ede53c9105 (patch) | |
tree | da43c705c9d498dffbd876cae1c3e023f9ab6cc1 /profile.c | |
parent | 69da208080bf6af0af3b5a2adfa9347019272a57 (diff) | |
download | subsurface-1ba901fed670ecf55e44b0d8aafb78ede53c9105.tar.gz |
Initialize / reset selected_dive to -1
The value of 0 that we used is actually a valid value and could cause
confusion.
Suggested-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12,7 +12,7 @@ #include "libdivecomputer/parser.h" #include "libdivecomputer/version.h" -int selected_dive = 0; +int selected_dive = -1; /* careful: 0 is a valid value */ char zoomed_plot = 0; char dc_number = 0; |