-GArik: fix infinite loop
authorChristian Grothoff <christian@grothoff.org>
Sun, 12 Feb 2012 18:24:18 +0000 (18:24 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 12 Feb 2012 18:24:18 +0000 (18:24 +0000)
src/fs/fs_uri.c

index 50c8785b6623c7fb241021fcf6adc41288146826..54e75b8c31d550ed8402bd7e6dd67d0865b4f0e0 100644 (file)
@@ -1404,7 +1404,7 @@ GNUNET_FS_uri_test_ksk (const struct GNUNET_FS_Uri *uri)
 
   if (uri->type == ksk)
   {
-    for (i = uri->data.ksk.keywordCount - 1; i >= 0; i--)
+    for (i=0;i i < uri->data.ksk.keywordCount; i++)
       GNUNET_assert (uri->data.ksk.keywords[i] != NULL);
   }
 #endif