diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-19 16:54:53 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-19 16:54:53 +0100 |
commit | b0937948acc28e39ac2ed53799dbc63bad8b2936 (patch) | |
tree | c06504b2a3820d1ce1ba64289fe0f577ba0e2710 /src/jsonapi | |
parent | b34ecee66712dd181d37d4f6f6a623cea2dc9df7 (diff) | |
download | gnunet-b0937948acc28e39ac2ed53799dbc63bad8b2936.tar.gz gnunet-b0937948acc28e39ac2ed53799dbc63bad8b2936.zip |
-fix
Diffstat (limited to 'src/jsonapi')
-rw-r--r-- | src/jsonapi/jsonapi_resource.c | 4 |
1 files 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) | |||
92 | { | 92 | { |
93 | struct GNUNET_JSONAPI_Resource *res; | 93 | struct GNUNET_JSONAPI_Resource *res; |
94 | 94 | ||
95 | if ( (NULL == type) || (0 == strlen (type)) ) | 95 | if (NULL == type) |
96 | return NULL; | 96 | return NULL; |
97 | if ( (NULL == id) || (0 == strlen (id)) ) | 97 | if (NULL == id) |
98 | return NULL; | 98 | return NULL; |
99 | 99 | ||
100 | res = GNUNET_new (struct GNUNET_JSONAPI_Resource); | 100 | res = GNUNET_new (struct GNUNET_JSONAPI_Resource); |