[Bf-blender-cvs] [9231150] master: Cleanup: redundant cast

Campbell Barton noreply at git.blender.org
Mon Oct 13 15:52:24 CEST 2014


Commit: 92311505770edcac59440851a2b7a5d823b68690
Author: Campbell Barton
Date:   Mon Oct 13 15:51:31 2014 +0200
Branches: master
https://developer.blender.org/rB92311505770edcac59440851a2b7a5d823b68690

Cleanup: redundant cast

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

M	source/blender/editors/space_file/fsmenu.c

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

diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c
index 00d9680..c117b8c 100644
--- a/source/blender/editors/space_file/fsmenu.c
+++ b/source/blender/editors/space_file/fsmenu.c
@@ -446,7 +446,7 @@ void fsmenu_read_system(struct FSMenu *fsmenu, int read_bookmarks)
 
 				/* Exclude "all my files" as it makes no sense in blender fileselector */
 				/* Exclude "airdrop" if wlan not active as it would show "" ) */
-				if (!strstr((char *)line, "myDocuments.cannedSearch") && (strcmp((char *)line, ""))) {
+				if (!strstr(line, "myDocuments.cannedSearch") && (*line != '\0')) {
 					fsmenu_insert_entry(fsmenu, FS_CATEGORY_SYSTEM_BOOKMARKS, line, NULL);
 				}




More information about the Bf-blender-cvs mailing list