[gnome-color-manager] trivial: fix up some whitespace issues in gcm-apply
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: fix up some whitespace issues in gcm-apply
- Date: Tue, 3 Nov 2009 15:04:00 +0000 (UTC)
commit 134e2e41e7489fd0c1b83e560f6047a167c16ae4
Author: Richard Hughes <richard hughsie com>
Date: Tue Nov 3 15:03:03 2009 +0000
trivial: fix up some whitespace issues in gcm-apply
src/gcm-apply.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/gcm-apply.c b/src/gcm-apply.c
index d393a69..35f3abf 100644
--- a/src/gcm-apply.c
+++ b/src/gcm-apply.c
@@ -40,7 +40,7 @@ main (int argc, char **argv)
GOptionContext *context;
GnomeRROutput **outputs;
guint i;
- GnomeRRScreen *rr_screen;
+ GnomeRRScreen *rr_screen = NULL;
gboolean connected;
const GOptionEntry options[] = {
@@ -59,11 +59,12 @@ main (int argc, char **argv)
egg_debug_init (verbose);
/* get screen */
- rr_screen = gnome_rr_screen_new (gdk_screen_get_default (), NULL, NULL, &error);
- if (rr_screen == NULL) {
+ rr_screen = gnome_rr_screen_new (gdk_screen_get_default (), NULL, NULL, &error);
+ if (rr_screen == NULL) {
egg_warning ("failed to get rr screen: %s", error->message);
+ g_error_free (error);
goto out;
- }
+ }
/* set for each output */
outputs = gnome_rr_screen_list_outputs (rr_screen);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]