Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
aee1ead3
Commit
aee1ead3
authored
Nov 19, 2020
by
Aleix Pol Gonzalez
🐧
Browse files
fwupd: Properly check that a string is empty
parent
d71d3889
Changes
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/backends/FwupdBackend/FwupdTransaction.cpp
View file @
aee1ead3
...
...
@@ -30,7 +30,7 @@ void FwupdTransaction::install()
if
(
m_app
->
isDeviceLocked
())
{
QString
device_id
=
m_app
->
deviceId
();
if
(
device_id
.
is
Null
())
{
if
(
device_id
.
is
Empty
())
{
qWarning
()
<<
"Fwupd Error: No Device ID set, cannot unlock device "
<<
this
<<
m_app
->
name
();
}
else
if
(
!
fwupd_client_unlock
(
m_backend
->
client
,
device_id
.
toUtf8
().
constData
(),
nullptr
,
&
error
))
{
m_backend
->
handleError
(
error
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment