-cleanup
authorChristian Grothoff <christian@grothoff.org>
Fri, 16 Dec 2011 19:18:12 +0000 (19:18 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 16 Dec 2011 19:18:12 +0000 (19:18 +0000)
src/statistics/statistics_api.c

index 8e453bfd40dbd00adfc9ebe5b7f32e038a110601..281ba8a9ba94226f394b5ece2df6c708d86a4527 100644 (file)
@@ -259,8 +259,8 @@ static void
 insert_ai (struct GNUNET_STATISTICS_Handle *h,
            struct GNUNET_STATISTICS_GetHandle *ai)
 {
-  GNUNET_CONTAINER_DLL_insert_after (h->action_head, h->action_tail,
-                                     h->action_tail, ai);
+  GNUNET_CONTAINER_DLL_insert_tail (h->action_head, h->action_tail,
+                                   ai);
   if (h->action_head == ai)
     schedule_action (h);
 }