Skip to content

Commit

Permalink
Merge pull request #152 from xw19/switch-to-jansson
Browse files Browse the repository at this point in the history
Switch to jansson
  • Loading branch information
saschagrunert authored Dec 19, 2024
2 parents ac4ad68 + 1a8e131 commit 1ea2ef9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ocispec/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,9 @@ def get_c_json(obj, c_file, prefix):
"parser_error *err)\n")
c_file.append("{\n")
c_file.append(" int stat = JSON_GEN_SUCCESS;\n")
c_file.append(" /* Handle cases where root is not used within body of function */\n")
c_file.append(" if (json_is_null(root))\n")
c_file.append(" return stat;\n")
c_file.append(" *err = NULL;\n")
c_file.append(" (void) ptr; /* Silence compiler warning. */\n")
if obj.typ == 'mapStringObject':
Expand Down

0 comments on commit 1ea2ef9

Please sign in to comment.