arg
[oweals/gnunet.git] / src / fs / fs_uri.c
index 788f606859910bbfc9cedc6ed85c2ef0066ddba9..4b249d6bf37f3bd20550f11d9f34dc94a00b7eca 100644 (file)
@@ -406,8 +406,9 @@ uri_chk_parse (const char *s, char **emsg)
   char h1[sizeof(struct GNUNET_CRYPTO_HashAsciiEncoded)];
   char h2[sizeof(struct GNUNET_CRYPTO_HashAsciiEncoded)];
 
+  if (NULL == s)
+    return NULL;
   GNUNET_assert (s != NULL);
-
   slen = strlen (s);
   pos = strlen (GNUNET_FS_URI_CHK_PREFIX);
   if ( (slen < pos + 2 * sizeof (struct GNUNET_CRYPTO_HashAsciiEncoded) + 1) ||