[Bf-blender-cvs] [5f4bde8] alembic_pointcache: Fix for undefined return value.

Lukas Tönne noreply at git.blender.org
Tue Feb 24 12:47:29 CET 2015


Commit: 5f4bde826b8c07aca42c5247af365f4b364dd6e0
Author: Lukas Tönne
Date:   Tue Feb 24 12:47:09 2015 +0100
Branches: alembic_pointcache
https://developer.blender.org/rB5f4bde826b8c07aca42c5247af365f4b364dd6e0

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