gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r7445 - in GNUnet/src/applications/fs: ecrs tools


From: gnunet
Subject: [GNUnet-SVN] r7445 - in GNUnet/src/applications/fs: ecrs tools
Date: Thu, 17 Jul 2008 16:09:56 -0600 (MDT)

Author: grothoff
Date: 2008-07-17 16:09:55 -0600 (Thu, 17 Jul 2008)
New Revision: 7445

Modified:
   GNUnet/src/applications/fs/ecrs/helper.c
   GNUnet/src/applications/fs/tools/gnunet-search.c
Log:
correct fix for 1390:


Modified: GNUnet/src/applications/fs/ecrs/helper.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/helper.c    2008-07-17 21:51:21 UTC (rev 
7444)
+++ GNUnet/src/applications/fs/ecrs/helper.c    2008-07-17 22:09:55 UTC (rev 
7445)
@@ -158,6 +158,8 @@
   const char *r;
   char *w;
 
+  if (num_keywords == 0)
+    return NULL;
   uri = GNUNET_malloc (sizeof (URI));
   uri->type = ksk;
   uri->data.ksk.keywordCount = num_keywords;

Modified: GNUnet/src/applications/fs/tools/gnunet-search.c
===================================================================
--- GNUnet/src/applications/fs/tools/gnunet-search.c    2008-07-17 21:51:21 UTC 
(rev 7444)
+++ GNUnet/src/applications/fs/tools/gnunet-search.c    2008-07-17 22:09:55 UTC 
(rev 7445)
@@ -151,9 +151,6 @@
   struct GNUNET_FSUI_Context *ctx;
   struct GNUNET_FSUI_SearchList *s;
 
-  if (argc <= 1)
-      return -1;
-
   i = GNUNET_init (argc,
                    argv,
                    "gnunet-search [OPTIONS] [KEYWORDS]",





reply via email to

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