From 2c387895657ae13cd717d7f42f5baed5eb028a8e Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 10 Nov 2025 21:00:21 +0800 Subject: format more if-else codes in core --- core/src/xmake/thread/queue_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/src/xmake/thread/queue_init.c') diff --git a/core/src/xmake/thread/queue_init.c b/core/src/xmake/thread/queue_init.c index 20c08ce50..a0d683dd3 100644 --- a/core/src/xmake/thread/queue_init.c +++ b/core/src/xmake/thread/queue_init.c @@ -37,8 +37,9 @@ static tb_void_t xm_thread_value_free(tb_element_ref_t element, tb_pointer_t buf xm_thread_value_t *item = (xm_thread_value_t *)buff; if (item) { if (item->kind == XM_THREAD_VALUE_STR) { - if (item->u.string) + if (item->u.string) { tb_free((tb_pointer_t)item->u.string); + } item->u.string = tb_null; } item->size = 0; -- cgit v1.3.1