projects
/
platform
/
upstream
/
dbus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7398ad7
)
Explicitly check for zero time fields.
author
Scott James Remnant
<scott@ubuntu.com>
Mon, 11 May 2009 21:42:32 +0000
(22:42 +0100)
committer
Scott James Remnant
<scott@ubuntu.com>
Thu, 28 May 2009 09:47:35 +0000
(11:47 +0200)
* bus/expirelist.c (do_expiration_with_current_time): If the item added
time fields are both zero, always expire.
Signed-off-by: Scott James Remnant <scott@ubuntu.com>
bus/expirelist.c
patch
|
blob
|
history
diff --git
a/bus/expirelist.c
b/bus/expirelist.c
index
d718d9f
..
038cfee
100644
(file)
--- a/
bus/expirelist.c
+++ b/
bus/expirelist.c
@@
-157,7
+157,8
@@
do_expiration_with_current_time (BusExpireList *list,
item->added_tv_usec,
tv_sec, tv_usec);
- if (elapsed >= (double) list->expire_after)
+ if (((item->added_tv_sec == 0) && (item->added_tv_usec == 0)) ||
+ (elapsed >= (double) list->expire_after))
{
_dbus_verbose ("Expiring an item %p\n", item);