mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 06:28:05 +02:00
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:
parent
49173e9a3a
commit
c24c4d489f
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue