mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 07:43:23 +00:00
Avoid NULL dereference
Coverity CID 1325297 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
15a55b9648
commit
a51903fbb6
1 changed files with 2 additions and 1 deletions
|
@ -565,6 +565,7 @@ void DiveLocationLineEdit::setCurrentDiveSiteUuid(uint32_t uuid)
|
||||||
struct dive_site *ds = get_dive_site_by_uuid(uuid);
|
struct dive_site *ds = get_dive_site_by_uuid(uuid);
|
||||||
if (!ds)
|
if (!ds)
|
||||||
clear();
|
clear();
|
||||||
|
else
|
||||||
setText(ds->name);
|
setText(ds->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue