summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2006-11-21 16:52:28 -0800
committerKeith Packard <keithp@neko.keithp.com>2006-11-21 16:52:28 -0800
commit0626eb8e5c9fa05de6bdc9aa0c654f5148bf7cff (patch)
tree35f185797e94fb5d1b9cc9d112181e6c31fd5428
parentaf55c65bea40669fdc038aa34c6a1ec9ecb33e87 (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.
-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;