[gnome-software/wip/kalev/gnome-3-22: 68/96] trivial: Fix up some broken error handling in the flatpak plugin
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/kalev/gnome-3-22: 68/96] trivial: Fix up some broken error handling in the flatpak plugin
- Date: Tue, 7 Mar 2017 16:29:47 +0000 (UTC)
commit 864e10c610b22f92a3ba1ba352afcccabd46e1b1
Author: Richard Hughes <richard hughsie com>
Date: Wed Feb 22 10:46:34 2017 +0000
trivial: Fix up some broken error handling in the flatpak plugin
src/plugins/gs-flatpak.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index b2b99b7..4100725 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -1639,6 +1639,8 @@ gs_plugin_refine_item_metadata (GsFlatpak *self,
} else {
data = gs_flatpak_fetch_remote_metadata (self, app, cancellable,
error);
+ if (data == NULL)
+ return FALSE;
str = g_bytes_get_data (data, &len);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]