diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-01-20 20:43:42 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-01-20 20:43:42 +0300 |
commit | a97ec403c28dc330b37459b1c94944ffe086abbb (patch) | |
tree | 730b2d584b747f7b044b6443652135d098722e66 /source/blender/editors/interface | |
parent | 21e128226533c704c43c285bb5f78faf16a11b58 (diff) |
Fix/cleanup stupid check on array of char being non-NULL pointer...
Reported by coverity scan.
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index a913421d12c..682db20af55 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -1993,7 +1993,7 @@ uiBut *ui_but_drag_multi_edit_get(uiBut *but) static bool ui_but_icon_extra_is_visible_text_clear(const uiBut *but) { BLI_assert(but->type == UI_BTYPE_TEXT); - return ((but->flag & UI_BUT_VALUE_CLEAR) && but->drawstr && but->drawstr[0]); + return ((but->flag & UI_BUT_VALUE_CLEAR) && but->drawstr[0]); } static bool ui_but_icon_extra_is_visible_search_unlink(const uiBut *but) |