Assert that timeout >= 0 in _dbus_platform_condvar_wait_timeout

This commit is contained in:
Gleb Popov 2025-05-08 00:58:06 +03:00 committed by Simon McVittie
parent fdb6746d85
commit a834a877c6

View file

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