summaryrefslogtreecommitdiffstats
path: root/core/import-divinglog.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-14 15:09:36 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-14 15:55:07 -0400
commitb01cba13c5dc81ed7367ae79b6af361e6abc0da1 (patch)
treef352a825e58d92f2c417d94f70ad823b23ad99cb /core/import-divinglog.c
parent8ddbe50d2921595e20947a1c8c828a286117c543 (diff)
downloadsubsurface-b01cba13c5dc81ed7367ae79b6af361e6abc0da1.tar.gz
Parser: remove global variable dive_id
This variable was only used in the divinglog_dive() function. There, it was initialized right at the beginning and therefore there seems to be no point in conserving its value across function-calls. Make the variable local and remove the global version. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/import-divinglog.c')
-rw-r--r--core/import-divinglog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/import-divinglog.c b/core/import-divinglog.c
index 3e2f396ba..f718ca087 100644
--- a/core/import-divinglog.c
+++ b/core/import-divinglog.c
@@ -271,7 +271,7 @@ extern int divinglog_dive(void *param, int columns, char **data, char **column)
UNUSED(columns);
UNUSED(column);
- int retval = 0;
+ int retval = 0, diveid;
sqlite3 *handle = (sqlite3 *)param;
char *err = NULL;
char get_profile_template[] = "select ProfileInt,Profile,Profile2,Profile3,Profile4,Profile5 from Logbook where ID = %d";