Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
KPMCore
Commits
fae9f834
Commit
fae9f834
authored
Nov 26, 2020
by
Andrius Štikonas
Browse files
Fix division by zero.
parent
4d3fcb76
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/util/externalcommandhelper.cpp
View file @
fae9f834
...
...
@@ -158,6 +158,11 @@ QVariantMap ExternalCommandHelper::CopyBlocks(const QString& sourceDevice, const
if
(
!
isCallerAuthorized
())
{
return
QVariantMap
();
}
// Avoid division by zero further down
if
(
!
blockSize
)
{
return
QVariantMap
();
}
QVariantMap
reply
;
reply
[
QStringLiteral
(
"success"
)]
=
true
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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