[gnome-packagekit] trivial: fix up a warning spotted by clang
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] trivial: fix up a warning spotted by clang
- Date: Mon, 23 May 2011 20:26:19 +0000 (UTC)
commit 80732a0a80b655f7d50c228a67f4582de4a3ac7b
Author: Richard Hughes <richard hughsie com>
Date: Mon May 23 21:25:20 2011 +0100
trivial: fix up a warning spotted by clang
src/gpk-log.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gpk-log.c b/src/gpk-log.c
index 7d66831..27d46c8 100644
--- a/src/gpk-log.c
+++ b/src/gpk-log.c
@@ -813,7 +813,7 @@ main (int argc, char *argv[])
gboolean ret;
gint status = 1;
GOptionContext *context;
- GtkApplication *application;
+ GtkApplication *application = NULL;
const GOptionEntry options[] = {
{ "filter", 'f', 0, G_OPTION_ARG_STRING, &filter,
@@ -865,6 +865,7 @@ main (int argc, char *argv[])
out:
if (builder != NULL)
g_object_unref (builder);
- g_object_unref (application);
+ if (application != NULL)
+ g_object_unref (application);
return status;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]