summaryrefslogtreecommitdiff
path: root/randr/rrproperty.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2006-11-21 16:52:28 -0800
committerEric Anholt <eric@anholt.net>2006-11-28 11:13:43 -0800
commit6245e9dd4719c5dc15ff45d49cf626123794038b (patch)
treec60807a99c27544b2dd301a82bc3848fb111b18b /randr/rrproperty.c
parent24abce8032940e96bb2ccf9e463a7fff6f36283a (diff)
Allocate correct size for RRPropertyRec (oops).
Neglected to change the allocation size from sizeof (PropertyRec) to sizeof (RRPropertyRec). Lots of fun crashes this way. (cherry picked from commit 0626eb8e5c9fa05de6bdc9aa0c654f5148bf7cff)
Diffstat (limited to 'randr/rrproperty.c')
-rw-r--r--randr/rrproperty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/randr/rrproperty.c b/randr/rrproperty.c
index 5d4c86565..a47f30671 100644
--- a/randr/rrproperty.c
+++ b/randr/rrproperty.c
@@ -68,9 +68,10 @@ RRCreateOutputProperty (Atom property)
{
RRPropertyPtr prop;
- prop = (RRPropertyPtr)xalloc(sizeof(PropertyRec));
+ prop = (RRPropertyPtr)xalloc(sizeof(RRPropertyRec));
if (!prop)
return NULL;
+ prop->next = NULL;
prop->propertyName = property;
prop->is_pending = FALSE;
prop->range = FALSE;