summaryrefslogtreecommitdiffstats
path: root/core/divecomputer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/divecomputer.cpp')
-rw-r--r--core/divecomputer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/divecomputer.cpp b/core/divecomputer.cpp
index 820a20a51..43219ed05 100644
--- a/core/divecomputer.cpp
+++ b/core/divecomputer.cpp
@@ -158,7 +158,7 @@ extern "C" void set_dc_nickname(struct dive *dive)
struct divecomputer *dc;
for_each_dc (dive, dc) {
- if (dc->model && *dc->model && dc->deviceid &&
+ if (!empty_string(dc->model) && dc->deviceid &&
!dcList.getExact(dc->model, dc->deviceid)) {
// we don't have this one, yet
const DiveComputerNode *existNode = dcList.get(dc->model);