mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 23:00:07 +01:00
shared: try avoid coverity warning in _nm_utils_user_data_unpack()
Coverity says CID 202453 (#1 of 1): Wrong sizeof argument (SIZEOF_MISMATCH)suspicious_sizeof: Passing argument user_data of type gconstpointer and argument (gsize)nargs * 8UL /* sizeof (gconstpointer) */ to function g_slice_free1 is suspicious. Let's pass instead the "data" pointer. It's the same, but maybe that avoids the warning.
This commit is contained in:
parent
e6fa3ce2df
commit
d76df4c139
1 changed files with 1 additions and 1 deletions
|
|
@ -2878,7 +2878,7 @@ _nm_utils_user_data_unpack (gpointer user_data, int nargs, ...)
|
|||
}
|
||||
va_end (ap);
|
||||
|
||||
g_slice_free1 (((gsize) nargs) * sizeof (gconstpointer), user_data);
|
||||
g_slice_free1 (((gsize) nargs) * sizeof (gconstpointer), data);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue