Commit fae9f834 authored by Andrius Štikonas's avatar Andrius Štikonas
Browse files

Fix division by zero.

parent 4d3fcb76
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment