From 606e83bc03bfbb867150c2e53513a24e019652f4 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 10 Jun 2021 18:07:00 +0930 Subject: [PATCH] Add TRANSIENTP cases for basic-encoded blobs --- ez-blob-basic.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ez-blob-basic.c b/ez-blob-basic.c index 9378577..88d1375 100644 --- a/ez-blob-basic.c +++ b/ez-blob-basic.c @@ -83,6 +83,8 @@ size_t ez_basic_size(const ez_blob_desc *desc, const void *p) { else abort(); break; + case EZ_BLOB_TRANSIENTP: + break; default: abort(); } @@ -151,6 +153,9 @@ int ez_basic_decode_raw(const ez_blob_desc *desc, const ez_blob *blob, void *p) } else abort(); break; + case EZ_BLOB_TRANSIENTP: + *(void **)v = NULL; + break; default: abort(); } @@ -235,6 +240,8 @@ int ez_basic_encode_raw(const ez_blob_desc *desc, const void *p, ez_blob *blob) } else abort(); break; + case EZ_BLOB_TRANSIENTP: + break; default: abort(); } -- 2.39.5