summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-03-11 22:45:00 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-03-11 22:45:00 (GMT)
commitf07044dab60fcd74ee32f4f959f7c2a233153bfa (patch)
tree91e29972dc4b921e2de325bfb4435dad0cfcb2e6 /plugins
parent539461d29e744d046b6dfa18ccc078a55c86b1d8 (diff)
Handle YAML nodes without values.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/yaml/pair.c3
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