node uninitialized memory valgrind found while looking into crash.

This commit is contained in:
Campbell Barton
2010-01-13 08:39:32 +00:00
parent d2e7abec82
commit 26c7f78bcc
2 changed files with 3 additions and 0 deletions

View File

@@ -99,6 +99,7 @@ TARGET_LINK_LIBRARIES(makesrna bf_dna)
# Output rna_*_gen.c
ADD_CUSTOM_COMMAND(
OUTPUT ${GENSRC}
# with crashes try add this after COMMEND: valgrind --leak-check=full --track-origins=yes
COMMAND ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/makesrna ${CMAKE_CURRENT_BINARY_DIR}/
DEPENDS makesrna
)

View File

@@ -577,6 +577,7 @@ static EnumPropertyItem* alloc_node_type_items(int category)
item->value = NODE_DYNAMIC;
item->identifier = "SCRIPT";
item->icon = 0;
item->name = "Script";
item->description = "";
@@ -584,6 +585,7 @@ static EnumPropertyItem* alloc_node_type_items(int category)
item->value = NODE_GROUP;
item->identifier = "GROUP";
item->icon = 0;
item->name = "Group";
item->description = "";