replace inline string searches with BLI_findstring(), strcmp(..., ""), with char...
[blender-staging.git] / source / blender / makesrna / intern / rna_object_force.c
index 0619f5e19b6442a1c07fcee62e0980735b46788d..a4fbd7c160e1452980714d11ab617fb19f935834 100644 (file)
@@ -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;