Author: grothoff
Date: 2008-02-08 01:58:06 -0700 (Fri, 08 Feb 2008)
New Revision: 6202

Modified:
   GNUnet/src/applications/fs/gap/plan.c
Log:
fix

Modified: GNUnet/src/applications/fs/gap/plan.c
===================================================================
--- GNUnet/src/applications/fs/gap/plan.c       2008-02-08 08:54:53 UTC (rev 
6201)
+++ GNUnet/src/applications/fs/gap/plan.c       2008-02-08 08:58:06 UTC (rev 
6202)
@@ -302,7 +302,10 @@
   /* insert into datastructure at pos */
   if (pos == NULL)
     {
-      qpl->tail->next = entry;
+      if (qpl->tail != NULL)
+       qpl->tail->next = entry;
+      else
+       qpl->head = entry;
       entry->prev = qpl->tail;
       qpl->tail = entry;
     }



_______________________________________________
GNUnet-SVN mailing list
GNUnet-SVN@gnu.org
http://lists.gnu.org/mailman/listinfo/gnunet-svn

Reply via email to