cleanup: localize global variable

Not needed to be global.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2018-01-05 13:02:43 +01:00
parent 74eb7b21a8
commit fc7729eb78

View file

@ -33,8 +33,6 @@
#define PATH_MAX 4096
#endif
struct dive_table gps_location_table;
// TODO: This looks like should be ported to C code. or a big part of it.
bool DivelogsDeWebServices::prepare_dives_for_divelogs(const QString &tempfile, const bool selected)
{
@ -303,6 +301,8 @@ void SubsurfaceWebServices::buttonClicked(QAbstractButton *button)
struct dive *d;
struct dive_site *ds;
bool changed = false;
struct dive_table gps_location_table;
memset(&gps_location_table, 0, sizeof(dive_table));
(void)changed;
clear_table(&gps_location_table);
QByteArray url = tr("Webservice").toLocal8Bit();