summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelogexportdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/divelogexportdialog.cpp')
-rw-r--r--qt-ui/divelogexportdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/divelogexportdialog.cpp b/qt-ui/divelogexportdialog.cpp
index 0193ea5d9..a747932ac 100644
--- a/qt-ui/divelogexportdialog.cpp
+++ b/qt-ui/divelogexportdialog.cpp
@@ -320,7 +320,7 @@ void DiveLogExportDialog::export_depths(const char *filename, const bool selecte
struct dive *dive;
depth_t depth;
int i;
- const char **unit = NULL;
+ const char *unit = NULL;
struct membuffer buf = { 0 };
@@ -336,7 +336,7 @@ void DiveLogExportDialog::export_depths(const char *filename, const bool selecte
depth.mm = s->depth.mm;
s++;
}
- put_format(&buf, "%s\t%.1f%s\n", picture->filename, get_depth_units(depth.mm, NULL, unit), *unit);
+ put_format(&buf, "%s\t%.1f%s\n", picture->filename, get_depth_units(depth.mm, NULL, &unit), unit);
}
}