[Bf-blender-cvs] [a97ec403c2] master: Fix/cleanup stupid check on array of char being non-NULL pointer...

Bastien Montagne noreply at git.blender.org
Fri Jan 20 18:53:00 CET 2017


Commit: a97ec403c28dc330b37459b1c94944ffe086abbb
Author: Bastien Montagne
Date:   Fri Jan 20 18:43:42 2017 +0100
Branches: master
https://developer.blender.org/rBa97ec403c28dc330b37459b1c94944ffe086abbb

Fix/cleanup stupid check on array of char being non-NULL pointer...

Reported by coverity scan.

===================================================================

M	source/blender/editors/interface/interface.c

===================================================================

diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index a913421d12..682db20af5 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)




More information about the Bf-blender-cvs mailing list