From dbd37b21bd5e87533b690e459a130d096972ffb3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 17 Feb 2014 20:15:33 +1100 Subject: Suppress assert in debug mode. --- source/blender/editors/space_file/filelist.c | 4 ++-- 1 file 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) -- cgit v1.2.3