Blame SOURCES/0001-vino_background_draw-The-initialised-variable-should.patch

df278b
From 7f9dc95e14d87cc184de2b3145a8c02ffd779802 Mon Sep 17 00:00:00 2001
df278b
From: =?UTF-8?q?S=C3=B8ren=20Sandmann?= <ssp@redhat.com>
df278b
Date: Tue, 7 Jan 2014 15:24:38 -0500
df278b
Subject: [PATCH] vino_background_draw: The 'initialised' variable should be
df278b
 static
df278b
df278b
The variable 'initialised' is used with g_once_init_enter() to guard
df278b
the initialization of the 'background_settings' variable. For this to
df278b
work, the 'initialised' variable must be static; otherwise it will be
df278b
unpredictable whether 'background_settings' is initialized or not.
df278b
---
df278b
 server/vino-server.c | 2 +-
df278b
 1 file changed, 1 insertion(+), 1 deletion(-)
df278b
df278b
diff --git a/server/vino-server.c b/server/vino-server.c
df278b
index a3edf9d..8becd52 100644
df278b
--- a/server/vino-server.c
df278b
+++ b/server/vino-server.c
df278b
@@ -294,7 +294,7 @@ static void
df278b
 vino_background_draw (gboolean status)
df278b
 {
df278b
   static GSettings *background_settings;
df278b
-  gsize initialised;
df278b
+  static gsize initialised;
df278b
 
df278b
   if (g_once_init_enter (&initialised))
df278b
     {
df278b
-- 
df278b
1.8.3.1
df278b