glib r6815 - in branches/glib-2-16: . glib
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r6815 - in branches/glib-2-16: . glib
- Date: Thu, 3 Apr 2008 05:53:46 +0100 (BST)
Author: matthiasc
Date: Thu Apr 3 05:53:46 2008
New Revision: 6815
URL: http://svn.gnome.org/viewvc/glib?rev=6815&view=rev
Log:
2008-04-03 Matthias Clasen <mclasen redhat com>
Bug 448943 â g_timeout_add_seconds() problems
* glib/gmain.c (g_timeout_set_expiration): Prevent expiration
time going negative. Reported by Cody Russell, analyzed by
Olivier Crete, patch by Sjoerd Simons.
Modified:
branches/glib-2-16/ChangeLog
branches/glib-2-16/glib/gmain.c
Modified: branches/glib-2-16/glib/gmain.c
==============================================================================
--- branches/glib-2-16/glib/gmain.c (original)
+++ branches/glib-2-16/glib/gmain.c Thu Apr 3 05:53:46 2008
@@ -3320,7 +3320,7 @@
if (!session_bus_address)
session_bus_address = g_getenv ("HOSTNAME");
if (session_bus_address)
- timer_perturb = g_str_hash (session_bus_address);
+ timer_perturb = ABS (g_str_hash (session_bus_address));
else
timer_perturb = 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]