diff options
author | Mattias Andrée <m@maandree.se> | 2025-02-10 18:28:54 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-02-10 18:28:54 +0100 |
commit | 69e7fdc8f7ed2782e2c73b632c2a7ee7e6b641d5 (patch) | |
tree | 55b05baf81f3b78e80df594f1c082735a03dc654 /libcoopgamma_queried_filter_unmarshal.c | |
parent | Minor code improvements and split into multiple c files (diff) | |
download | libcoopgamma-1.2.4.tar.gz libcoopgamma-1.2.4.tar.bz2 libcoopgamma-1.2.4.tar.xz |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'libcoopgamma_queried_filter_unmarshal.c')
-rw-r--r-- | libcoopgamma_queried_filter_unmarshal.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |