gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r1219 - GNUnet/src/applications/fs/ecrs


From: durner
Subject: [GNUnet-SVN] r1219 - GNUnet/src/applications/fs/ecrs
Date: Sun, 3 Jul 2005 01:57:09 -0700 (PDT)

Author: durner
Date: 2005-07-03 01:57:06 -0700 (Sun, 03 Jul 2005)
New Revision: 1219

Modified:
   GNUnet/src/applications/fs/ecrs/uri.c
Log:
Fix assertion

Modified: GNUnet/src/applications/fs/ecrs/uri.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/uri.c       2005-07-02 23:02:50 UTC (rev 
1218)
+++ GNUnet/src/applications/fs/ecrs/uri.c       2005-07-03 08:57:06 UTC (rev 
1219)
@@ -390,8 +390,12 @@
   int i;
   GNUNET_ASSERT(uri != NULL);
   if (uri->type == ksk) {
-    for (i=0;i<uri->data.ksk.keywordCount;i++)
-      FREE(uri->data.ksk.keywords[i]);
+    for (i=0;i<uri->data.ksk.keywordCount;i++) {
+       char *key = uri->data.ksk.keywords[i];
+       
+       if (key)
+       FREE(key);
+    }
     GROW(uri->data.ksk.keywords,
         uri->data.ksk.keywordCount,
         0);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]