[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r611 - GNUnet/src/applications/fs/ecrs
From: |
grothoff |
Subject: |
[GNUnet-SVN] r611 - GNUnet/src/applications/fs/ecrs |
Date: |
Mon, 4 Apr 2005 13:42:48 -0700 (PDT) |
Author: grothoff
Date: 2005-04-04 13:42:46 -0700 (Mon, 04 Apr 2005)
New Revision: 611
Modified:
GNUnet/src/applications/fs/ecrs/uri.c
Log:
fix
Modified: GNUnet/src/applications/fs/ecrs/uri.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/uri.c 2005-04-04 18:49:12 UTC (rev
610)
+++ GNUnet/src/applications/fs/ecrs/uri.c 2005-04-04 20:42:46 UTC (rev
611)
@@ -217,8 +217,12 @@
strlen(ECRS_SEARCH_INFIX)))
return SYSERR;
pos += strlen(ECRS_SEARCH_INFIX);
- if ( (slen == pos) ||
- (uri[slen-1] == '+') ||
+ if (slen == pos) {
+ /* no keywords */
+ (*keywords) = NULL;
+ return 0;
+ }
+ if ( (uri[slen-1] == '+') ||
(uri[pos] == '+') )
return SYSERR; /* no keywords / malformed */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r611 - GNUnet/src/applications/fs/ecrs,
grothoff <=