summaryrefslogtreecommitdiff
path: root/atk
diff options
context:
space:
mode:
Diffstat (limited to 'atk')
-rw-r--r--atk/atkvalue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/atk/atkvalue.c b/atk/atkvalue.c
index 5f565418..ae7242f7 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;
}
}