Skip to content

Commit

Permalink
Extra line on xjsonFieldToString().
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Dec 9, 2024
1 parent 58daf45 commit 3a94cdc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/xjson.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,6 @@ char *xjsonFieldToString(const XField *f) {
return NULL;
}

sprintf(&str[n], "\n");

return str;
}

Expand Down
2 changes: 1 addition & 1 deletion test/test-json.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ int main(int argc, char *argv[]) {
xSetDebug(TRUE);

str = xjsonToString(s),
printf("%s\n\n", str);
printf("%s", str);

next = str;
s1 = xjsonParseAt(&next, NULL);
Expand Down

0 comments on commit 3a94cdc

Please sign in to comment.