[atk: 1/2] atk_value_get_value_and_text: cope with text being NULL
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atk: 1/2] atk_value_get_value_and_text: cope with text being NULL
- Date: Thu, 24 Mar 2022 11:10:17 +0000 (UTC)
commit d123a661f438d6d52410300d3d51d3e471eafdc9
Author: Colomban Wendling <cwendling hypra fr>
Date: Thu Jul 30 15:57:35 2020 +0200
atk_value_get_value_and_text: cope with text being NULL
atk/atkvalue.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/atk/atkvalue.c b/atk/atkvalue.c
index 5f56541..ae7242f 100644
--- a/atk/atkvalue.c
+++ b/atk/atkvalue.c
@@ -550,7 +550,8 @@ atk_value_get_value_and_text (AtkValue *obj,
else
{
*value = 0.0;
- *text = NULL;
+ if (text)
+ *text = NULL;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]