From 27c66d0e1320f54aada9766ace988729c7183056 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 13 Dec 2009 11:56:45 -0800 Subject: [PATCH] fix invoke tests retval should be a valid pointer https://bugzilla.gnome.org/show_bug.cgi?id=604472 --- tests/invoke/invoke.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/invoke/invoke.c b/tests/invoke/invoke.c index dc64253..9d915cd 100644 --- a/tests/invoke/invoke.c +++ b/tests/invoke/invoke.c @@ -111,7 +111,7 @@ main (int argc, char *argv[]) function = (GIFunctionInfo *)info; in_args[0].v_pointer = "hello world\n"; - if (!g_function_info_invoke (function, in_args, 1, NULL, 0, NULL, &error)) + if (!g_function_info_invoke (function, in_args, 1, NULL, 0, &retval, &error)) g_print ("Invokation of %s failed: %s\n", g_base_info_get_name (info), error->message); @@ -128,7 +128,7 @@ main (int argc, char *argv[]) len = 0; out_args[0].v_pointer = &blurb; out_args[1].v_pointer = &len; - if (!g_function_info_invoke (function, NULL, 0, out_args, 2, NULL, &error)) + if (!g_function_info_invoke (function, NULL, 0, out_args, 2, &retval, &error)) g_print ("Invokation of %s failed: %s\n", g_base_info_get_name (info), error->message); -- 2.39.2