diff options
author | Kent Mein <mein@cs.umn.edu> | 2007-09-17 19:39:03 +0400 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2007-09-17 19:39:03 +0400 |
commit | d1e5c86b76501cef3ad5d5ae70825fc6398d642f (patch) | |
tree | decf199b2f0c37f180bfd54ecda9cc724c183913 /source/blender/src/filesel.c | |
parent | ed47851517b9048829aec4c5a3025cdb482715dd (diff) |
Added a NULL check that was needed.
Kent
Diffstat (limited to 'source/blender/src/filesel.c')
-rw-r--r-- | source/blender/src/filesel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/filesel.c b/source/blender/src/filesel.c index f4b9d47becf..1bdca25a88d 100644 --- a/source/blender/src/filesel.c +++ b/source/blender/src/filesel.c @@ -806,8 +806,8 @@ static void print_line(SpaceFile *sfile, struct direntry *files, int x, int y) struct LANGMenuEntry *lme; lme = find_language(U.language); - if (!strcmp(lme->code, "ja_JP") || - !strcmp(lme->code, "zh_CN")) + if ((lme !=NULL) && (!strcmp(lme->code, "ja_JP") || + !strcmp(lme->code, "zh_CN"))) { BIF_RasterPos((float)x, (float)y); #ifdef WIN32 |