Fix warning of unused variable.

This commit is contained in:
Patrick Pelissier committed 2025-05-07 21:02:24 +02:00
1 parent 431e3a1228
commit fb3140e645
1 file changed
+1
+1
View File
@@ -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);