[Bf-blender-cvs] [ee550b2] gooseberry: Fix for undefined return value.

Lukas Tönne noreply at git.blender.org
Mon Mar 23 13:00:59 CET 2015


Commit: ee550b2fc7d20f7ae1aba9764cfcbd9a6f6e90a4
Author: Lukas Tönne
Date:   Tue Feb 24 12:47:09 2015 +0100
Branches: gooseberry
https://developer.blender.org/rBee550b2fc7d20f7ae1aba9764cfcbd9a6f6e90a4

Fix for undefined return value.

===================================================================

M	source/blender/blenkernel/intern/cache_library.c

===================================================================

diff --git a/source/blender/blenkernel/intern/cache_library.c b/source/blender/blenkernel/intern/cache_library.c
index cb06427..87dc5fc 100644
--- a/source/blender/blenkernel/intern/cache_library.c
+++ b/source/blender/blenkernel/intern/cache_library.c
@@ -332,7 +332,7 @@ const char *BKE_cache_item_name_prefix(int type)
 		case CACHE_TYPE_DERIVED_MESH: return "MESH";
 		case CACHE_TYPE_HAIR: return "HAIR";
 		case CACHE_TYPE_HAIR_PATHS: return "HAIRPATHS";
-		default: BLI_assert(false); break;
+		default: BLI_assert(false); return NULL; break;
 	}
 }




More information about the Bf-blender-cvs mailing list