Imported Upstream version 2.50.2
[platform/upstream/glib.git] / docs / reference / glib / gvariant-varargs.xml
index a253865..d4b68f0 100644 (file)
@@ -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 */
 }]]></programlisting></informalexample>