mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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,7 +565,8 @@ 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();
|
||||||
setText(ds->name);
|
else
|
||||||
|
setText(ds->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DiveLocationLineEdit::showPopup()
|
void DiveLocationLineEdit::showPopup()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue