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)
committerScott James Remnant <scott@ubuntu.com>
Thu, 28 May 2009 09:47:31 +0000 (11:47 +0200)
commit92dd55c903b440bc423f1f8f9aeb0bbbbcc11bac
tree23cfb6557383ec22b04c7fbeeb34c86eac3eb81a
parente5eb472d11aa36c67e320edce41d66eb18cdf5d0
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>
dbus/dbus-pending-call.c