Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-05-01 10:34:40 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-05-01 10:34:40 +0400
commit22c2aef77c63cf4cbe19a1c5a8ea4671ef6440bd (patch)
tree4b4502c3111590f44429da4b55c3e22920c029e6 /source/blender/makesrna/intern/rna_object_force.c
parent81dabf76d7392c221decd339945ff3d5678a6023 (diff)
replace inline string searches with BLI_findstring(), strcmp(..., ""), with char comparisons.
Diffstat (limited to 'source/blender/makesrna/intern/rna_object_force.c')
-rw-r--r--source/blender/makesrna/intern/rna_object_force.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_object_force.c b/source/blender/makesrna/intern/rna_object_force.c
index 0619f5e19b6..a4fbd7c160e 100644
--- a/source/blender/makesrna/intern/rna_object_force.c
+++ b/source/blender/makesrna/intern/rna_object_force.c
@@ -190,7 +190,7 @@ static void rna_Cache_idname_change(Main *bmain, Scene *scene, PointerRNA *ptr)
for(pid=pidlist.first; pid; pid=pid->next) {
if(pid->cache==cache)
pid2 = pid;
- else if(strcmp(cache->name, "") && strcmp(cache->name,pid->cache->name)==0) {
+ else if(cache->name[0] != '\0' && strcmp(cache->name,pid->cache->name)==0) {
/*TODO: report "name exists" to user */
strcpy(cache->name, cache->prev_name);
new_name = 0;