diff options
| author | ruki <[email protected]> | 2025-11-10 21:00:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-10 21:00:21 +0800 |
| commit | 2c387895657ae13cd717d7f42f5baed5eb028a8e (patch) | |
| tree | 8f005a8dfc3272e9f027560e5e1b5881a7a8bc70 /core/src/xmake/thread/queue_init.c | |
| parent | 831447a51da0b094e08bb047247bf269a6e6cf71 (diff) | |
format more if-else codes in core
Diffstat (limited to 'core/src/xmake/thread/queue_init.c')
| -rw-r--r-- | core/src/xmake/thread/queue_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |
