Package: kde-workspace / 4:4.11.13-2

initialize_variables_crashfix.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
From: José Manuel Santamaría Lema <panfaust@gmail.com>
From: Modestas Vainius <modax@debian.org>
Subject: initialize some primitive variables avoiding potential crashes with dbus 1.4.8
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=623492
Last-Update: 2011-04-24
Forwarded: no
Origin: vendor

--- a/libs/kephal/service/xrandroutputs.cpp
+++ b/libs/kephal/service/xrandroutputs.cpp
@@ -94,7 +94,15 @@ namespace Kephal {
     }
 
     XRandROutput::XRandROutput(XRandROutputs * parent, RROutput rrId)
-            : BackendOutput(parent), m_productId(-1), m_serialNumber(0)
+            : BackendOutput(parent),
+            m_productId(-1),
+            m_serialNumber(0),
+            m_previousConnected(false),
+            m_previousActivated(false),
+            m_previousRotation(RotateNormal),
+            m_previousRate(0),
+            m_previousReflectX(false),
+            m_previousReflectY(false)
     {
         m_outputs = parent;
         m_rrId = rrId;
--- a/libs/kephal/kephal/simpleoutput.cpp
+++ b/libs/kephal/kephal/simpleoutput.cpp
@@ -24,7 +24,13 @@
 namespace Kephal {
 
     SimpleOutput::SimpleOutput(QObject * parent, QString id, QSize size, QPoint position, bool connected, bool activated)
-        : Output(parent)
+        : Output(parent),
+        m_productId(-1),
+        m_serialNumber(0),
+        m_rotation(RotateNormal),
+        m_reflectX(false),
+        m_reflectY(false),
+        m_rate(0)
     {
         m_id = id;
         m_size = size;
@@ -39,11 +45,23 @@ namespace Kephal {
         m_position(0, 0),
         m_connected(false),
         m_activated(false)
+        m_productId(-1),
+        m_serialNumber(0),
+        m_rotation(RotateNormal),
+        m_reflectX(false),
+        m_reflectY(false),
+        m_rate(0)
     {
     }
 
     SimpleOutput::SimpleOutput(QObject * parent, Output * output)
-        : Output(parent)
+        : Output(parent),
+        m_productId(-1),
+        m_serialNumber(0),
+        m_rotation(RotateNormal),
+        m_reflectX(false),
+        m_reflectY(false),
+        m_rate(0)
     {
         m_id = output->id();
         m_size = output->size();