diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-10-27 16:36:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-10-27 16:40:51 +0300 |
commit | 9b6aa740be31b395fc62b4e6e491cba8c8f977e3 (patch) | |
tree | 20f84c6298b8fdb62a06a954050078127ab335d6 /source/blender/editors/interface/interface.c | |
parent | f1824e6ec45fa0d7c0a01d50ace45ec28595d07d (diff) |
Cleanup: remove redundant NULL checks
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 54fd91e5361..ff6b65ffbfc 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -2624,10 +2624,10 @@ void ui_but_string_get_ex(uiBut *but, BLI_assert(0); } - if (!buf) { + if (buf == NULL) { str[0] = '\0'; } - else if (buf && buf != str) { + else if (buf != str) { BLI_assert(maxlen <= buf_len + 1); /* string was too long, we have to truncate */ if (UI_but_is_utf8(but)) { |