[gnome-builder] flatpak: fix gotos
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] flatpak: fix gotos
- Date: Wed, 17 Nov 2021 09:00:49 +0000 (UTC)
commit f4adfe60e2d9662ad9d806f95b53c764fb9723b9
Author: Christian Hergert <chergert redhat com>
Date: Wed Nov 17 00:58:57 2021 -0800
flatpak: fix gotos
These were actually needed for the double break-out.
src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
b/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
index 3e4883c4f..4b3ed3d78 100644
--- a/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
+++ b/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
@@ -972,7 +972,7 @@ find_installations_for_refs (IpcFlatpakServiceImpl *self,
flatpak_installation_get_is_user (r->installation))
{
g_ptr_array_add (installations, g_object_ref (r->installation));
- continue;
+ goto next_ref;
}
}
@@ -984,11 +984,14 @@ find_installations_for_refs (IpcFlatpakServiceImpl *self,
flatpak_installation_get_is_user (install))
{
g_ptr_array_add (installations, g_steal_pointer (&install));
- continue;
+ goto next_ref;
}
/* Default to our internal private installation */
g_ptr_array_add (installations, g_object_ref (private_install->installation));
+
+ next_ref:
+ continue;
}
return installations;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]