mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 23:00:19 +01:00
libnm: remove early return statement in test_nm_auth_permissions()
Reported by coverity: >>> CID 210230: Control flow issues (UNREACHABLE) >>> This code cannot be reached: "i = 0;". Fixes:09e17888f7('libnm: add mapping functions between string and NMClientPermission enum') (cherry picked from commita29b13c7f1)
This commit is contained in:
parent
bb40de0ca0
commit
63e0ed1a08
1 changed files with 1 additions and 1 deletions
|
|
@ -3103,7 +3103,7 @@ test_nm_auth_permissions (void)
|
|||
g_assert (s == nm_auth_permission_names_by_idx[i - 1]);
|
||||
g_assert_cmpint (nm_auth_permission_from_string (s), ==, i);
|
||||
}
|
||||
return;
|
||||
|
||||
for (i = 0; i < NM_CLIENT_PERMISSION_LAST; i++)
|
||||
g_assert_cmpint (nm_auth_permission_from_string (nm_auth_permission_names_by_idx[i]), ==, i + 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue