Commit 4c65d034 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

flatpak: fix clang warning

parent 437ecaee
......@@ -136,7 +136,7 @@ bool FlatpakSourcesBackend::removeSource(const QString &id)
if (sourceIt) {
FlatpakSourceItem *sourceItem = static_cast<FlatpakSourceItem*>(sourceIt);
g_autoptr(GCancellable) cancellable = g_cancellable_new();
g_autoptr(GError) error = NULL;
g_autoptr(GError) error = nullptr;
if (flatpak_installation_remove_remote(sourceItem->flatpakInstallation(), id.toUtf8().constData(), cancellable, &error)) {
m_sources->removeRow(sourceItem->row());
return 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