Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-12-01 22:52:04 +0300
committerTon Roosendaal <ton@blender.org>2006-12-01 22:52:04 +0300
commit20ac94e8f06f776a15e2e0b4ec2ac3e57b8a3d02 (patch)
treef1fe516c1bb28acb59dba16b9f1683ce28350d10 /source/blender/src/editnode.c
parentef389028b96d194320894ffd072e00adf2d3ff54 (diff)
Two hours of fixing details based on Klocwork source review. Useful report,
although it has a lot of noise. Not to mention our bad string code gives a load of warnings. I've reviewed specifically: - file reading/write - dna and library code - node system - entire render module Done a couple of files in src/ too, seemed to be nice errors.
Diffstat (limited to 'source/blender/src/editnode.c')
-rw-r--r--source/blender/src/editnode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/editnode.c b/source/blender/src/editnode.c
index 1d290644148..26196e16c9a 100644
--- a/source/blender/src/editnode.c
+++ b/source/blender/src/editnode.c
@@ -1466,7 +1466,7 @@ static void node_insert_convertor(SpaceNode *snode, bNodeLink *link)
static int node_add_link_drag(SpaceNode *snode, bNode *node, bNodeSocket *sock, int in_out)
{
bNode *tnode;
- bNodeSocket *tsock;
+ bNodeSocket *tsock= NULL;
bNodeLink *link= NULL;
short mval[2], mvalo[2], firsttime=1; /* firsttime reconnects a link broken by caller */
@@ -1539,7 +1539,7 @@ static int node_add_link_drag(SpaceNode *snode, bNode *node, bNodeSocket *sock,
/* we might need to remove a link */
if(in_out==SOCK_OUT) {
- if(nodeCountSocketLinks(snode->edittree, link->tosock) > tsock->limit) {
+ if(tsock && nodeCountSocketLinks(snode->edittree, link->tosock) > tsock->limit) {
for(tlink= snode->edittree->links.first; tlink; tlink= tlink->next) {
if(link!=tlink && tlink->tosock==link->tosock)