diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2018-01-05 13:02:43 +0100 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2018-01-06 09:21:16 +0100 |
commit | fc7729eb78e7dae803546b3cc0011260e779a2e8 (patch) | |
tree | 5e73bc7fe1e4f6fad274b5c50acf7be493d1db3a /desktop-widgets | |
parent | 74eb7b21a8c9bd78a9a8f09dcd5dddea2bde4037 (diff) | |
download | subsurface-fc7729eb78e7dae803546b3cc0011260e779a2e8.tar.gz |
cleanup: localize global variable
Not needed to be global.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/subsurfacewebservices.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/subsurfacewebservices.cpp b/desktop-widgets/subsurfacewebservices.cpp index 6e4f191d6..d7eb2bfeb 100644 --- a/desktop-widgets/subsurfacewebservices.cpp +++ b/desktop-widgets/subsurfacewebservices.cpp @@ -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(); |