diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-11-04 23:04:17 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-11-04 15:53:15 -0800 |
commit | 04149623c18b83e8eac9fe6f84d669c3dbd4d8fc (patch) | |
tree | f6a300110e5ad291aefea830ba0b5584fcbd49df /translations/subsurface_source.ts | |
parent | be3190db8a14fc51d88c65f5359b9b7787acd2a7 (diff) | |
download | subsurface-04149623c18b83e8eac9fe6f84d669c3dbd4d8fc.tar.gz |
core: don't construct std::string from null in device.cpp
Recently the QStrings were replaced by std::strings in device.cpp
so that they can be accessed from C-code. However, libstd being
modelled after C, constructing a std::string from a NULL pointer
leads to a crash.
Fix one case where this was overlooked.
Moreover, replace a null-pointer check by empty_string(), to
treat NULL and "" equally.
Reported-by: Salvador Cuñat <salvador.cunat@gmail.com>
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'translations/subsurface_source.ts')
0 files changed, 0 insertions, 0 deletions