mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 02:30:08 +01:00
test: assert that the signal connection succeeds properly
0 is not success and negative can not happen, as Coverity points out.
This commit is contained in:
parent
d9218f6074
commit
ace8d96bed
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ add_signal_full (const char *name, NMPlatformSignalChangeType change_type, GCall
|
|||
data->ifindex = ifindex;
|
||||
data->ifname = ifname;
|
||||
|
||||
g_assert (data->handler_id >= 0);
|
||||
g_assert (data->handler_id > 0);
|
||||
|
||||
return data;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue