Don't allocate DBusTimeout for pending call when passed INT_MAX
authorScott James Remnant <scott@ubuntu.com>
Mon, 11 May 2009 21:40:38 +0000 (22:40 +0100)
committerColin Walters <walters@verbum.org>
Tue, 14 Jul 2009 19:37:32 +0000 (15:37 -0400)
commitecea18c7b2f4d26bfd06170695c40c4fd5998c45
tree16054523f5f13ee22b8550d076063a67994882d5
parent1617081d91c82a1d8a8ae6620ba917996203c454
Don't allocate DBusTimeout for pending call when passed INT_MAX

* dbus/dbus-pending-call.c (_dbus_pending_call_new_unlocked): When passed
  INT_MAX, do not clamp the value and do not allocate a timeout for the call
  (_dbus_pending_call_get_timeout_unlocked): Document that this may return
  NULL.

Signed-off-by: Scott James Remnant <scott@ubuntu.com>
(cherry picked from commit 92dd55c903b440bc423f1f8f9aeb0bbbbcc11bac)
dbus/dbus-pending-call.c