diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-02-13 15:52:18 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-02-13 15:52:18 +0100 |
commit | cd17d095e8d542d6cef854e8394472364e9a01b9 (patch) | |
tree | 967637e4c264bf68a5151e9ffd5269ee85beb1e8 /src/testing/testing_api_trait_string.c | |
parent | 7adf9f170fbc314cc699c347f4c338be045c385f (diff) | |
download | exchange-cd17d095e8d542d6cef854e8394472364e9a01b9.tar.xz |
permit NULL trait
Diffstat (limited to 'src/testing/testing_api_trait_string.c')
-rw-r--r-- | src/testing/testing_api_trait_string.c | 8 |
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 381760113..b102265e8 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; } |