diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-03-11 22:45:00 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-03-11 22:45:00 (GMT) |
commit | f07044dab60fcd74ee32f4f959f7c2a233153bfa (patch) | |
tree | 91e29972dc4b921e2de325bfb4435dad0cfcb2e6 /plugins | |
parent | 539461d29e744d046b6dfa18ccc078a55c86b1d8 (diff) |
Handle YAML nodes without values.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/yaml/pair.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/yaml/pair.c b/plugins/yaml/pair.c index 0e96937..df29f6f 100644 --- a/plugins/yaml/pair.c +++ b/plugins/yaml/pair.c @@ -192,6 +192,9 @@ GYamlPair *g_yaml_pair_new(GYamlLine *line) value = g_yaml_line_get_value(line); if (key == NULL) + key = g_yaml_line_get_payload(line); + + if (key == NULL) result = NULL; else |