[gnome-software] packagekit refine: Fix a compiler warning
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] packagekit refine: Fix a compiler warning
- Date: Tue, 24 Feb 2015 09:37:40 +0000 (UTC)
commit a32bd04a1a30cbb0b0094aa304f74996954e9d2e
Author: Kalev Lember <kalevlember gmail com>
Date: Tue Feb 24 10:04:00 2015 +0100
packagekit refine: Fix a compiler warning
gs-plugin-packagekit-refine.c: In function 'gs_plugin_packagekit_refine_details_app':
gs-plugin-packagekit-refine.c:468:44: warning: logical not is only applied to the left hand side of
comparison [-Wlogical-not-parentheses]
pk_details_get_package_id (details)) != 0) {
src/plugins/gs-plugin-packagekit-refine.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit-refine.c b/src/plugins/gs-plugin-packagekit-refine.c
index c01e470..ff6e18f 100644
--- a/src/plugins/gs-plugin-packagekit-refine.c
+++ b/src/plugins/gs-plugin-packagekit-refine.c
@@ -465,7 +465,7 @@ gs_plugin_packagekit_refine_details_app (GsPlugin *plugin,
/* right package? */
details = g_ptr_array_index (array, i);
if (!gs_pk_compare_ids (package_id,
- pk_details_get_package_id (details)) != 0) {
+ pk_details_get_package_id (details))) {
continue;
}
if (gs_app_get_licence (app) == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]