mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-11 02:30:39 +01:00
shared: explicitly ignore return value of g_utf8_validate()
Coverity doesn't like us ignoring the return value, although we really only care about the "p" output pointer. Try casting the result to (void), maybe that silences Coverity.
This commit is contained in:
parent
4596d7793c
commit
e6fa3ce2df
1 changed files with 1 additions and 1 deletions
|
|
@ -1939,7 +1939,7 @@ nm_utils_buf_utf8safe_escape (gconstpointer buf, gssize buflen, NMUtilsStrUtf8Sa
|
|||
break;
|
||||
|
||||
s = &p[1];
|
||||
g_utf8_validate (s, buflen, &p);
|
||||
(void) g_utf8_validate (s, buflen, &p);
|
||||
} while (TRUE);
|
||||
|
||||
*to_free = g_string_free (gstr, FALSE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue