From 9f2b9adbe3264a252034e261411dce2884ae91af Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 11 Jun 2025 13:41:53 -0700 Subject: [PATCH] Revert "randr: RRCreateProviderProperty(): use calloc()" This reverts commit 05188ccec1cad52ebe78f67bebcbe85a7a1e27d5. Part-of: --- randr/rrproviderproperty.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/randr/rrproviderproperty.c b/randr/rrproviderproperty.c index 45e9a63e6..27444ea8a 100644 --- a/randr/rrproviderproperty.c +++ b/randr/rrproviderproperty.c @@ -107,10 +107,16 @@ RRCreateProviderProperty(Atom property) { RRPropertyPtr prop; - prop = (RRPropertyPtr) calloc(1, sizeof(RRPropertyRec)); + prop = (RRPropertyPtr) malloc(sizeof(RRPropertyRec)); if (!prop) return NULL; + prop->next = NULL; prop->propertyName = property; + prop->is_pending = FALSE; + prop->range = FALSE; + prop->immutable = FALSE; + prop->num_valid = 0; + prop->valid_values = NULL; RRInitProviderPropertyValue(&prop->current); RRInitProviderPropertyValue(&prop->pending); return prop;