r7143 - dumbhippo/trunk/client/linux/src



Author: hp
Date: 2008-01-07 16:14:21 -0600 (Mon, 07 Jan 2008)
New Revision: 7143

Modified:
   dumbhippo/trunk/client/linux/src/hippo-cookies-linux.c
Log:
fix cookie file monitoring... I thought it was working, but apparently that was just a coincidence where the timeout ran at the right time

Modified: dumbhippo/trunk/client/linux/src/hippo-cookies-linux.c
===================================================================
--- dumbhippo/trunk/client/linux/src/hippo-cookies-linux.c	2008-01-07 21:59:36 UTC (rev 7142)
+++ dumbhippo/trunk/client/linux/src/hippo-cookies-linux.c	2008-01-07 22:14:21 UTC (rev 7143)
@@ -28,6 +28,8 @@
     for (l = cookie_monitors; l != NULL; l = l->next) {
         CookieMonitor *cm = l->data;
 
+        g_assert(cm != NULL);
+        
         (* cm->func) (cm->data);
         
         if (start_serial != cookie_monitors_serial) {
@@ -152,6 +154,8 @@
     CookieMonitor *cm;
 
     cm = g_new0(CookieMonitor, 1);
+    cm->func = func;
+    cm->data = data;
     cookie_monitors = g_slist_append(cookie_monitors, cm);
 
     ++cookie_monitors_serial;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]