summaryrefslogtreecommitdiff
path: root/tests/runtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runtc.c')
-rw-r--r--tests/runtc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/runtc.c b/tests/runtc.c
index e376070..ab55139 100644
--- a/tests/runtc.c
+++ b/tests/runtc.c
@@ -48,7 +48,7 @@ struct channel {
struct option {
char *key;
- char *value;
+ GVariant *value;
};
struct pd {
@@ -736,7 +736,8 @@ int main(int argc, char **argv)
} else {
option = malloc(sizeof(struct option));
option->key = g_strdup(kv[0]);
- option->value = g_strdup(kv[1]);
+ option->value = g_variant_new_string(kv[1]);
+ g_variant_ref_sink(option->value);
/* Apply to last PD. */
pd->options = g_slist_append(pd->options, option);
}