diff options
author | Elia Sarti <vekoon@gmail.com> | 2009-06-28 15:37:45 +0400 |
---|---|---|
committer | Elia Sarti <vekoon@gmail.com> | 2009-06-28 15:37:45 +0400 |
commit | 8bf355533e9868f0c39f1e9330753d9da5810b83 (patch) | |
tree | 9d36d687e6b0104153d2a73dd9561394baf210ef | |
parent | 6b9f3b5f5c8d918585e01461a6202ae3df2df621 (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.
-rw-r--r-- | source/blender/blenkernel/intern/context.c | 3 |
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; } |