From b0937948acc28e39ac2ed53799dbc63bad8b2936 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Mon, 19 Dec 2016 16:54:53 +0100 Subject: [PATCH] -fix --- src/jsonapi/jsonapi_resource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.25.1