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 */ _______________________________________________ GNUnet-SVN mailing list GNUnet-SVN@gnu.org http://lists.gnu.org/mailman/listinfo/gnunet-svn