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-09-28 09:20:14 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-09-28 09:20:14 +0400
commit4208eed25ba1596d79f15ac33442b552ad796161 (patch)
tree3c182b906915e5a824369476178717fb2507ca46 /source/blender/makesrna/intern/rna_text.c
parent2bc2752374ce18d78068765782a1c7214965ade6 (diff)
use __func__ rather than function names in rna prints, some were incorrect.
also replace use of strlen() where checking first char is enough.
Diffstat (limited to 'source/blender/makesrna/intern/rna_text.c')
-rw-r--r--source/blender/makesrna/intern/rna_text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_text.c b/source/blender/makesrna/intern/rna_text.c
index 6a1e93fce41..4e23fb6b095 100644
--- a/source/blender/makesrna/intern/rna_text.c
+++ b/source/blender/makesrna/intern/rna_text.c
@@ -69,7 +69,7 @@ static void rna_Text_filename_set(PointerRNA *ptr, const char *value)
if(text->name)
MEM_freeN(text->name);
- if(strlen(value))
+ if(value[0])
text->name= BLI_strdup(value);
else
text->name= NULL;