mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 00:38:07 +02:00
core/logging: add assert to nm_logging_setup() to check input arguments
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
a69037431c
commit
f6882496e3
1 changed files with 3 additions and 0 deletions
|
|
@ -163,6 +163,9 @@ nm_logging_setup (const char *level,
|
|||
char **tmp, **iter;
|
||||
int i;
|
||||
|
||||
g_return_val_if_fail (!bad_domains || !*bad_domains, FALSE);
|
||||
g_return_val_if_fail (!error || !*error, FALSE);
|
||||
|
||||
logging_set_up = TRUE;
|
||||
|
||||
for (i = 0; i < LOGL_MAX; i++)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue