Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-06-19 04:29:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-06-19 04:29:51 +0300
commit2f5a79b390627e6f75d97eb7c2099dbe3d566fb5 (patch)
tree3b444a4cbba3e12e590cb30d1427c839daca0c8d /source/blender/editors/interface/interface.c
parent2299e6d9bad4f707110cdf8e1b5affd6f1088826 (diff)
Fix button label access returning empty label
The check the buttons string has content (not just that it's non-NULL).
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r--source/blender/editors/interface/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index 9612eab0025..4b1bdc4a534 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -6324,7 +6324,7 @@ void UI_but_string_info_get(bContext *C, uiBut *but, ...)
char *tmp = NULL;
if (type == BUT_GET_LABEL) {
- if (but->str) {
+ if (but->str && but->str[0]) {
const char *str_sep;
size_t str_len;