Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua_cjson.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ static int json_cfg_encode_indent(lua_State *l)

json_string_option(l, 1, &cfg->encode_indent);
/* simplify further checking */
if (cfg->encode_indent[0] == '\0') cfg->encode_indent = NULL;
if (cfg->encode_indent && cfg->encode_indent[0] == '\0') cfg->encode_indent = NULL;

return 1;
}
Expand Down