summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cdd6472)
MIME parts may have no filename, which previously resulted in calling
strlen(NULL).
char *
json_quote_str(const void *ctx, const char *str)
{
char *
json_quote_str(const void *ctx, const char *str)
{
+ if (str == NULL)
+ str = "";
+
return (json_quote_chararray (ctx, str, strlen (str)));
}
return (json_quote_chararray (ctx, str, strlen (str)));
}