summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColomban Wendling <cwendling@hypra.fr>2020-07-30 15:57:35 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-07-30 15:57:35 +0200
commitd123a661f438d6d52410300d3d51d3e471eafdc9 (patch)
tree530afc16089f7f2242a45db7eff75568b7e15fec
parentdbe95f6170ae1f4bb76c755506b4e3dd3990d5aa (diff)
downloadatk-d123a661f438d6d52410300d3d51d3e471eafdc9.tar.gz
atk_value_get_value_and_text: cope with text being NULL
-rw-r--r--atk/atkvalue.c3
1 files changed, 2 insertions, 1 deletions
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;
}
}