From 69e7fdc8f7ed2782e2c73b632c2a7ee7e6b641d5 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 10 Feb 2025 18:28:54 +0100 Subject: Fix portability issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libcoopgamma_queried_filter_unmarshal.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libcoopgamma_queried_filter_unmarshal.c') diff --git a/libcoopgamma_queried_filter_unmarshal.c b/libcoopgamma_queried_filter_unmarshal.c index 99d6bc3..f8a04ed 100644 --- a/libcoopgamma_queried_filter_unmarshal.c +++ b/libcoopgamma_queried_filter_unmarshal.c @@ -20,8 +20,12 @@ libcoopgamma_queried_filter_unmarshal(libcoopgamma_queried_filter_t *restrict th size_t n = 0; UNMARSHAL_PROLOGUE; memset(this, 0, sizeof(*this)); + this->class = NULL; + this->ramps.u8.red = NULL; + this->ramps.u8.green = NULL; + this->ramps.u8.blue = NULL; unmarshal_version(LIBCOOPGAMMA_QUERIED_FILTER_VERSION); - unmarshal_prim(this->priority, int64_t); + unmarshal_prim(this->priority); unmarshal_string(this->class); switch (depth) { case LIBCOOPGAMMA_UINT8: r = libcoopgamma_ramps_unmarshal(&this->ramps.u8, NNSUBBUF, &n); break; -- cgit v1.2.3-70-g09d2