diff options
author | Emmanuele Bassi <ebassi@gmail.com> | 2022-03-24 11:10:16 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gmail.com> | 2022-03-24 11:10:16 +0000 |
commit | 337eeb104abef33a7ee853bdd6febc1c00cb095a (patch) | |
tree | aaa84eee7255f5db6730a43ecfaa65306a57992c | |
parent | 76998241f809dc17fdd4d5725699813b0c405708 (diff) | |
parent | d123a661f438d6d52410300d3d51d3e471eafdc9 (diff) | |
download | atk-337eeb104abef33a7ee853bdd6febc1c00cb095a.tar.gz |
Merge branch 'get_value_and_text_text_null' into 'master'
atk_value_get_value_and_text: cope with text being NULL
See merge request GNOME/atk!43
-rw-r--r-- | atk/atkvalue.c | 3 |
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; } } |