From fb3140e64504ede62c8ed081da06979a449e7e82 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 26 Apr 2025 00:10:01 +0200 Subject: [PATCH] Fix warning of unused variable. --- m-string.h | 1 + 1 file changed, 1 insertion(+) diff --git a/m-string.h b/m-string.h index 9d588a83..8f5259bf 100644 --- a/m-string.h +++ b/m-string.h @@ -1984,6 +1984,7 @@ m_string_pop_u(m_string_unicode_t *u, m_string_t str) // Support of NULL pointer m_string_unicode_t u_tmp; m_string_unicode_t *u_ptr = u == NULL ? &u_tmp : u; + *u_ptr = 0; do { m_str1ng_utf8_decode(*tmp++, &state, u_ptr); } while (state != M_STR1NG_UTF8_STARTING && state != M_STR1NG_UTF8_ERROR);