Skip to content

Commit

Permalink
xjson: use BSD-comparible errno
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Jan 9, 2025
1 parent a16ca32 commit 99aeed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xjson.c
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,7 @@ char *xjsonUnescape(const char *str) {
}

str = json2raw(str, l, raw);
if(str) x_error(0, EBADE, fn, str);
if(str) x_error(0, EBADMSG, fn, str);

return raw;
}

0 comments on commit 99aeed8

Please sign in to comment.