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:
Thomas Haller 2014-02-12 11:05:02 +01:00
parent a69037431c
commit f6882496e3

View file

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