src: fix issues reported by clang-tidy

Some of those are simply ignored as they're false positives.
This commit is contained in:
Arnaud Ferraris
2024-10-29 15:03:45 +01:00
parent 2c311b9022
commit f978b775e0
5 changed files with 16 additions and 11 deletions

View File

@@ -246,18 +246,19 @@ static void fetch_assistance_data(struct EG25Manager *manager)
g_message("Fetching GNSS assistance data from %s was successful", url);
fflush(tmp_file);
curl_easy_cleanup(curl);
/* Go to the next step */
manager->gnss_assistance_step++;
gnss_step(manager);
return;
goto cleanup;
bail:
manager->gnss_assistance_step = EG25_GNSS_STEP_LAST;
cleanup:
fflush(tmp_file);
fclose(tmp_file);
if (curl != NULL)
curl_easy_cleanup(curl);
manager->gnss_assistance_step = EG25_GNSS_STEP_LAST;
}
/******************************************************************************/