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:
Thomas Haller 2018-08-28 13:34:40 +02:00
parent 921db9132e
commit 986ca94a36

View file

@ -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++;