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
path: root/source
diff options
context:
space:
mode:
authorElia Sarti <vekoon@gmail.com>2009-06-28 15:37:45 +0400
committerElia Sarti <vekoon@gmail.com>2009-06-28 15:37:45 +0400
commit8bf355533e9868f0c39f1e9330753d9da5810b83 (patch)
tree9d36d687e6b0104153d2a73dd9561394baf210ef /source
parent6b9f3b5f5c8d918585e01461a6202ae3df2df621 (diff)
Zeroing listbase result for context data collection get when no data is found.
Caused crash for uninitialized pointers when getting collection data for editors not supporting that member, e.g. "deselect all" operator in non-3dview editors.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/context.c b/source/blender/blenkernel/intern/context.c
index 90880e354ec..fbad585d9b7 100644
--- a/source/blender/blenkernel/intern/context.c
+++ b/source/blender/blenkernel/intern/context.c
@@ -358,6 +358,9 @@ static int ctx_data_collection_get(const bContext *C, const char *member, ListBa
return 1;
}
+ list->first= NULL;
+ list->last= NULL;
+
return 0;
}