mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-20 04:30:10 +01:00
Assert that timeout >= 0 in _dbus_platform_condvar_wait_timeout
This commit is contained in:
parent
fdb6746d85
commit
a834a877c6
1 changed files with 2 additions and 0 deletions
|
|
@ -229,6 +229,8 @@ _dbus_platform_condvar_wait_timeout (DBusCondVar *cond,
|
|||
struct timespec end_time;
|
||||
int result;
|
||||
|
||||
_dbus_assert (timeout_milliseconds >= 0);
|
||||
|
||||
#ifdef HAVE_MONOTONIC_CLOCK
|
||||
if (have_monotonic_clock)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue