Commit 2f7e6d90 authored by Luca Giambonini's avatar Luca Giambonini

set initial value to false

parent 49b044a6
......@@ -162,7 +162,7 @@ void PolkitRemoveOperation::validate()
{
// Check if the local DB has this package
Package::List packages = Backend::instance()->localDatabase()->searchPackages(d->package->name());
bool found;
bool found = false;
foreach (Package *p, packages) {
if (p->name() == d->package->name()) {
found = 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