[gnome-software] trivial: Add a sanity check when deduplicating GsApps
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Add a sanity check when deduplicating GsApps
- Date: Fri, 8 Aug 2014 21:05:45 +0000 (UTC)
commit 81e2a72fd868b21830f9733d9cec799f3e3ce24a
Author: Richard Hughes <richard hughsie com>
Date: Fri Aug 8 23:05:27 2014 +0200
trivial: Add a sanity check when deduplicating GsApps
src/gs-app.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 2f21865..8db004f 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -1758,6 +1758,7 @@ gs_app_subsume (GsApp *app, GsApp *other)
g_return_if_fail (GS_IS_APP (app));
g_return_if_fail (GS_IS_APP (other));
+ g_return_if_fail (app != other);
/* an [updatable] installable package is more information than
* just the fact that something is installed */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]