Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: yaml/libyaml
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 21ea72fb28b6fcdde43fd099ae7a824f0542594b
Choose a base ref
..
head repository: yaml/libyaml
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1c2f6b7f593927a48d2e3e73af2e9b652d8f0471
Choose a head ref
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/api.c
2 changes: 2 additions & 0 deletions src/api.c
Original file line number Diff line number Diff line change
@@ -1206,6 +1206,7 @@ yaml_document_add_scalar(yaml_document_t *document,

assert(document); /* Non-NULL document object is expected. */
assert(value); /* Non-NULL value is expected. */
if (STACK_NULL(&context, document->nodes)) goto error;

if (!tag) {
tag = (yaml_char_t *)YAML_DEFAULT_SCALAR_TAG;
@@ -1304,6 +1305,7 @@ yaml_document_add_mapping(yaml_document_t *document,
yaml_node_t node;

assert(document); /* Non-NULL document object is expected. */
if (STACK_NULL(&context, document->nodes)) goto error;

if (!tag) {
tag = (yaml_char_t *)YAML_DEFAULT_MAPPING_TAG;