rnpgp / rnp

RNP: high performance C++ OpenPGP library used by Mozilla Thunderbird
https://www.rnpgp.org
Other
201 stars 55 forks source link

json-utils: use features of JSON-C v0.13+ if available. #2280

Open ni4 opened 1 month ago

ni4 commented 1 month ago

Description

In function json_add() ther is a following todo item:

    // TODO: in JSON-C 0.13 json_object_object_add returns bool instead of void
    json_object_object_add(obj, name, val);

Maybe the same could be applied to other sources.