Commit 59ec2912 authored by Thomas Perl's avatar Thomas Perl Committed by Matthias Clasen

Documentation fix: g_variant_get() returns void
parent 985ae37d
......@@ -937,7 +937,7 @@ value2 = g_variant_new ("(@(iii)*)", value1, g_variant_new_string ("foo"));
GVariant *value;
value = g_variant_new ("&s", "hello world");
str = g_variant_get (value, "&s", &str);
g_variant_get (value, "&s", &str);
g_print ("string is: %s\n", str);
/* no need to free str */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment