[gnome-software] trivial: Fix a theoretical crash spotted by clang
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix a theoretical crash spotted by clang
- Date: Mon, 28 Oct 2013 16:33:19 +0000 (UTC)
commit 82f29082b308e840459b33f4f52790cacd725c2c
Author: Richard Hughes <richard hughsie com>
Date: Mon Oct 28 16:28:02 2013 +0000
trivial: Fix a theoretical crash spotted by clang
src/plugins/gs-plugin-packagekit-history.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit-history.c b/src/plugins/gs-plugin-packagekit-history.c
index 7c5092d..2717a92 100644
--- a/src/plugins/gs-plugin-packagekit-history.c
+++ b/src/plugins/gs-plugin-packagekit-history.c
@@ -160,7 +160,7 @@ gs_plugin_packagekit_refine (GsPlugin *plugin,
GsApp *app_dummy;
guint i = 0;
GVariantIter iter;
- GVariant *result;
+ GVariant *result = NULL;
GVariant *tuple = NULL;
GVariant *value;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]