A few fixes for recent own commit r56133.
authorLukas Toenne <lukas.toenne@googlemail.com>
Thu, 18 Apr 2013 13:16:38 +0000 (13:16 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Thu, 18 Apr 2013 13:16:38 +0000 (13:16 +0000)
commit1d004e571aeca4c1ad7c4d554b57542aaaeb6099
treeb86e60f0c9635e5318b8b0ca147ac0e0fbfae1df
parent0b0abfe6fb4ee09b99cf4f4853eb6faef7fd39a4
A few fixes for recent own commit r56133.

* Index was assigned after increment, leading to NULL pointer access later on when looking up socket from list
* Copying default_value requires a valid NULL pointer for clean check
* Was using default_values as parameters instead of sockets, void pointers just passed through without warning ...
source/blender/editors/space_node/node_templates.c