core: fix undefined reference to assert in session-monitor-{systemd, null}

assert.h is not included, that results in an undefined
reference to assert, just use g_assert instead.
This commit is contained in:
Benjamin Franzke 2012-02-09 15:37:40 +01:00 committed by Dan Williams
parent 49173e9a3a
commit c24c4d489f
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ nm_session_monitor_get (void)
return g_object_ref (singleton);
singleton = NM_SESSION_MONITOR (g_object_new (NM_TYPE_SESSION_MONITOR, NULL));
assert (singleton);
g_assert (singleton);
return singleton;
}

View file

@ -196,7 +196,7 @@ nm_session_monitor_get (void)
return g_object_ref (singleton);
singleton = NM_SESSION_MONITOR (g_object_new (NM_TYPE_SESSION_MONITOR, NULL));
assert (singleton);
g_assert (singleton);
return singleton;
}