diff options
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r-- | uemis-downloader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c index 465437aa6..1c7b23887 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -733,7 +733,7 @@ static char *get_divenr(char *deviceidstr) for (i = 0; i < dive_table.nr; i++) { struct divecomputer *dc = &dive_table.dives[i]->dc; while (dc) { - if (!strcmp(dc->model, "Uemis Zurich") && + if (dc->model && !strcmp(dc->model, "Uemis Zurich") && dc->deviceid == deviceid && dc->diveid > maxdiveid) maxdiveid = dc->diveid; dc = dc->next; |