diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-17 13:15:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-17 13:16:07 +0400 |
commit | dbd37b21bd5e87533b690e459a130d096972ffb3 (patch) | |
tree | 23993941e42542d188d5f59787114538112efba8 /source/blender/editors/space_file/filelist.c | |
parent | fcaf144a2a0b96f1ad5e65f42dc55717a42c65b5 (diff) |
Suppress assert in debug mode.
Diffstat (limited to 'source/blender/editors/space_file/filelist.c')
-rw-r--r-- | source/blender/editors/space_file/filelist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c index 6ea5638b8f0..a7995dd8a90 100644 --- a/source/blender/editors/space_file/filelist.c +++ b/source/blender/editors/space_file/filelist.c @@ -1033,7 +1033,7 @@ bool filelist_islibrary(struct FileList *filelist, char *dir, char *group) static int groupname_to_code(const char *group) { - char buf[32]; + char buf[BLO_GROUP_MAX]; char *lslash; BLI_strncpy(buf, group, sizeof(buf)); @@ -1041,7 +1041,7 @@ static int groupname_to_code(const char *group) if (lslash) lslash[0] = '\0'; - return BKE_idcode_from_name(buf); + return buf[0] ? BKE_idcode_from_name(buf) : 0; } void filelist_from_library(struct FileList *filelist) |