We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad14f44 commit 769bdb7Copy full SHA for 769bdb7
gencodecs/discord_codecs.PRE.h
@@ -9,7 +9,7 @@ PP_INCLUDE("types.h")
9
10
/* Custom JSON encoding macros */
11
#define GENCODECS_JSON_ENCODER_PTR_json_char(b, buf, size, _var, _type) \
12
- if (0 > (code = jsonb_token(b, buf, size, _var, strlen(_var)))) \
+ if (0 > (code = jsonb_token(b, buf, size, _var, _var ? strlen(_var) : 0)))\
13
return code
14
#define GENCODECS_JSON_ENCODER_size_t(b, buf, size, _var, _type) \
15
{ \
0 commit comments