From b01cba13c5dc81ed7367ae79b6af361e6abc0da1 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 14 Oct 2018 15:09:36 +0200 Subject: 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 --- core/import-divinglog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/import-divinglog.c') 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"; -- cgit v1.2.3-70-g09d2