summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-02-13 15:52:18 +0100
committerChristian Grothoff <christian@grothoff.org>2021-02-13 15:52:18 +0100
commitcd17d095e8d542d6cef854e8394472364e9a01b9 (patch)
tree967637e4c264bf68a5151e9ffd5269ee85beb1e8 /src/testing
parent7adf9f170fbc314cc699c347f4c338be045c385f (diff)
downloadexchange-cd17d095e8d542d6cef854e8394472364e9a01b9.tar.gz
exchange-cd17d095e8d542d6cef854e8394472364e9a01b9.tar.bz2
exchange-cd17d095e8d542d6cef854e8394472364e9a01b9.zip
permit NULL trait
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing_api_trait_string.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testing/testing_api_trait_string.c b/src/testing/testing_api_trait_string.c
index 38176011..b102265e 100644
--- a/src/testing/testing_api_trait_string.c
+++ b/src/testing/testing_api_trait_string.c
@@ -132,10 +132,10 @@ TALER_TESTING_make_trait_url (unsigned int index,
.ptr = (const void *) url
};
- GNUNET_assert (0 != strncasecmp (url,
- "payto://",
- strlen ("payto://")));
-
+ GNUNET_assert ( (NULL == url) ||
+ (0 != strncasecmp (url,
+ "payto://",
+ strlen ("payto://"))) );
return ret;
}