diff options
author | Thomas Haller <thaller@redhat.com> | 2019-08-02 09:27:52 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-08-02 09:27:52 +0200 |
commit | e6fa3ce2dfd45ef3556b31b8f51c88a78c4e4ce4 (patch) | |
tree | 999af923a11874202aa98f0efcd239b97fef4068 | |
parent | 4596d7793cee22228e68d102fa199ed1736a2050 (diff) | |
download | NetworkManager-e6fa3ce2dfd45ef3556b31b8f51c88a78c4e4ce4.tar.gz |
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.
-rw-r--r-- | shared/nm-glib-aux/nm-shared-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/nm-glib-aux/nm-shared-utils.c b/shared/nm-glib-aux/nm-shared-utils.c index c8a253a668..b2ec547092 100644 --- a/shared/nm-glib-aux/nm-shared-utils.c +++ b/shared/nm-glib-aux/nm-shared-utils.c @@ -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); |