Skip to content

Commit

Permalink
Resolve '-Wzero-as-null-pointer-constant' warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Minty-Meeo committed Mar 24, 2023
1 parent 111c9be commit 54bf2bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion picojson.h
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ template <typename Iter> inline std::string parse(value &out, Iter &pos, const I

template <typename Context, typename Iter> inline Iter _parse(Context &ctx, const Iter &first, const Iter &last, std::string *err) {
input<Iter> in(first, last);
if (!_parse(ctx, in) && err != NULL) {
if (!_parse(ctx, in) && err != nullptr) {
char buf[64];
SNPRINTF(buf, sizeof(buf), "syntax error at line %d near: ", in.line());
*err = buf;
Expand Down

0 comments on commit 54bf2bb

Please sign in to comment.