[virt-tools-list] [PATCH 2/6] Don't return a gboolean when a gchar * is expected

Fabiano Fidêncio fabiano at fidencio.org
Tue Jul 24 20:05:14 UTC 2012


---
 osinfo/osinfo_install_script.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/osinfo/osinfo_install_script.c b/osinfo/osinfo_install_script.c
index 7bf1e2e..1f437a1 100644
--- a/osinfo/osinfo_install_script.c
+++ b/osinfo/osinfo_install_script.c
@@ -627,10 +627,10 @@ gchar *osinfo_install_script_generate_finish(OsinfoInstallScript *script,
 {
     GSimpleAsyncResult *simple = G_SIMPLE_ASYNC_RESULT(res);
 
-    g_return_val_if_fail(error == NULL || *error == NULL, FALSE);
+    g_return_val_if_fail(error == NULL || *error == NULL, NULL);
 
     if (g_simple_async_result_propagate_error(simple, error))
-        return FALSE;
+        return NULL;
 
     return g_simple_async_result_get_op_res_gpointer(simple);
 }
-- 
1.7.10.4




More information about the virt-tools-list mailing list