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/blenkernel/intern/font.c
parent81dabf76d7392c221decd339945ff3d5678a6023 (diff)
replace inline string searches with BLI_findstring(), strcmp(..., ""), with char comparisons.
Diffstat (limited to 'source/blender/blenkernel/intern/font.c')
-rw-r--r--source/blender/blenkernel/intern/font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/font.c b/source/blender/blenkernel/intern/font.c
index 0c722d81f45..6898615c753 100644
--- a/source/blender/blenkernel/intern/font.c
+++ b/source/blender/blenkernel/intern/font.c
@@ -386,7 +386,7 @@ VFont *load_vfont(const char *name)
vfont->data = vfd;
/* if there's a font name, use it for the ID name */
- if (strcmp(vfd->name, "")!=0) {
+ if (vfd->name[0] != '\0') {
BLI_strncpy(vfont->id.name+2, vfd->name, sizeof(vfont->id.name)-2);
}
BLI_strncpy(vfont->name, name, sizeof(vfont->name));