mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 07:50:17 +01:00
libnm: assert in nm_utils_is_uuid() for valid argument
nm_utils_is_uuid() is public API. Commonly we check input arguments for such functions with g_return_*() assertions.
This commit is contained in:
parent
921db9132e
commit
986ca94a36
1 changed files with 2 additions and 0 deletions
|
|
@ -4333,6 +4333,8 @@ nm_utils_is_uuid (const char *str)
|
|||
const char *p = str;
|
||||
int num_dashes = 0;
|
||||
|
||||
g_return_val_if_fail (str, FALSE);
|
||||
|
||||
while (*p) {
|
||||
if (*p == '-')
|
||||
num_dashes++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue