From 4950ed63b60078c8698b3c79c23192453142c147 Mon Sep 17 00:00:00 2001 From: Johannes Lorenz Date: Fri, 17 Oct 2025 02:38:17 +0200 Subject: [PATCH] Fix invalid 0 initialization The line ```c++ rtosc_arg_t result = {0}; ``` fails to zero-initialize the whole union (it only does so for the first member, which is different behavior to structs). This is fixed using "designated zero-initialization": ```c++ rtosc_arg_t result = {}; ``` Checked the whole code, no other such union initialization issues. This fixes test failures on some machines: fat-message test-arg-iter SaveOscPresets SaveOscBigFile --- src/rtosc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtosc.c b/src/rtosc.c index 6b80498..1b953b2 100644 --- a/src/rtosc.c +++ b/src/rtosc.c @@ -435,7 +435,7 @@ size_t rtosc_amessage(char *buffer, static rtosc_arg_t extract_arg(const uint8_t *arg_pos, char type) { - rtosc_arg_t result = {0}; + rtosc_arg_t result = {}; //trivial case if(!has_reserved(type)) { switch(type)