Fix button label access returning empty label

The check the buttons string has content (not just that it's non-NULL).
This commit is contained in:
2019-06-19 11:29:51 +10:00
parent 2299e6d9ba
commit 2f5a79b390

View File

@@ -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;