projects
/
blender-staging.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replace inline string searches with BLI_findstring(), strcmp(..., ""), with char...
[blender-staging.git]
/
source
/
blender
/
blenkernel
/
intern
/
font.c
diff --git
a/source/blender/blenkernel/intern/font.c
b/source/blender/blenkernel/intern/font.c
index 0c722d81f45e6d0c84cbfd822371e6140ffdc2ee..6898615c7537b045cbd1eff58b979599715ee2d1 100644
(file)
--- 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 */
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));
BLI_strncpy(vfont->id.name+2, vfd->name, sizeof(vfont->id.name)-2);
}
BLI_strncpy(vfont->name, name, sizeof(vfont->name));