From: Schanzenbach, Martin Date: Mon, 19 Dec 2016 15:54:53 +0000 (+0100) Subject: -fix X-Git-Tag: gnunet-0.11.0rc0~24^2~103 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b0937948acc28e39ac2ed53799dbc63bad8b2936;p=oweals%2Fgnunet.git -fix --- diff --git a/src/jsonapi/jsonapi_resource.c b/src/jsonapi/jsonapi_resource.c index 85bca10ee..4a166f58a 100644 --- a/src/jsonapi/jsonapi_resource.c +++ b/src/jsonapi/jsonapi_resource.c @@ -92,9 +92,9 @@ GNUNET_JSONAPI_resource_new (const char *type, const char *id) { struct GNUNET_JSONAPI_Resource *res; - if ( (NULL == type) || (0 == strlen (type)) ) + if (NULL == type) return NULL; - if ( (NULL == id) || (0 == strlen (id)) ) + if (NULL == id) return NULL; res = GNUNET_new (struct GNUNET_JSONAPI_Resource);