simplify
authorChristian Grothoff <christian@grothoff.org>
Mon, 18 Jan 2010 16:09:34 +0000 (16:09 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 18 Jan 2010 16:09:34 +0000 (16:09 +0000)
src/fs/gnunet-service-fs.c

index 7a8c0ad33b54b4407330bbda05beb09c534c63a4..71e59f11538a664e0cdb84aeb6d0ee53e9f8fb7a 100644 (file)
@@ -1177,9 +1177,9 @@ handle_unindex (void *cls,
                       sizeof (GNUNET_HashCode)))
        {
          if (prev == NULL)
-           indexed_files = pos->next;
+           indexed_files = next;
          else
-           prev->next = pos->next;
+           prev->next = next;
          GNUNET_free (pos);
          found = GNUNET_YES;
        }