[at-spi2-core] Fix warning



commit eb9e9429fc28dae92f1dcbd0f3ea0bd4a248fdfe
Author: Mike Gorse <mgorse suse com>
Date:   Thu Jun 23 15:40:07 2022 -0500

    Fix warning

 atspi/atspi-value.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/atspi/atspi-value.c b/atspi/atspi-value.c
index 4aef846b..714fdb6e 100644
--- a/atspi/atspi-value.c
+++ b/atspi/atspi-value.c
@@ -167,7 +167,7 @@ atspi_value_get_text (AtspiValue *obj, GError **error)
 {
   gchar *retval = NULL;
 
-  g_return_if_fail (obj != NULL);
+  g_return_val_if_fail (obj != NULL, NULL);
 
   _atspi_dbus_get_property (obj, atspi_interface_value, "Text", error, "s", &retval);
   


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]