commit 66e6c0c149d353f1cc28f44630ca3deec40df38e
parent c820e0c0bc1ce465b3a6d59ee9a878ddf342af4d
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 2 Nov 2023 16:57:57 +0100
scope can be NULL
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/challengerdb/pg_authorize_start.c b/src/challengerdb/pg_authorize_start.c
@@ -40,7 +40,9 @@ CH_PG_authorize_start (void *cls,
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_auto_from_type (nonce),
GNUNET_PQ_query_param_uint64 (&client_id),
- GNUNET_PQ_query_param_string (client_scope),
+ NULL != client_scope
+ ? GNUNET_PQ_query_param_string (client_scope),
+ : GNUNET_PQ_query_param_null (),
GNUNET_PQ_query_param_string (client_state),
NULL != client_redirect_uri
? GNUNET_PQ_query_param_string (client_redirect_uri)