Revert "cleanup: localize global variable"

This reverts commit fc7729eb78.

This caused the GPS workflow to break for Linus. Let's revert
for 4.7.8 and figure out how to do this cleanup correctly, later.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-04-03 11:51:26 -07:00
parent b4ddcbfb63
commit ceaf26d198

View file

@ -33,6 +33,8 @@
#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)
{
@ -301,8 +303,6 @@ 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").toUtf8();