mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 02:40:11 +01:00
platform/tests: add assertions to nmtstp_link_bridge_normalize_jiffies_time()
This is supposed to workaround a coverity warning.
This commit is contained in:
parent
951ba8f9fd
commit
c6be3404f8
1 changed files with 4 additions and 0 deletions
|
|
@ -1427,6 +1427,10 @@ nmtstp_link_bridge_normalize_jiffies_time(const NMPlatformLnkBridge *requested,
|
|||
const NMPlatformLnkBridge *kernel,
|
||||
NMPlatformLnkBridge * dst)
|
||||
{
|
||||
g_assert(requested);
|
||||
g_assert(dst);
|
||||
g_assert(kernel);
|
||||
|
||||
if (dst != requested)
|
||||
*dst = *requested;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue