diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-23 11:44:21 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-23 11:44:21 +0300 |
commit | ce2295999e5fc667f3574b9c53cba04155bd1546 (patch) | |
tree | f54198fa757c4282a2f0f79c46d6fedbbf728480 /source/blender/windowmanager | |
parent | 225be0cf30940cf840bbac0f19b10efadecf94d4 (diff) |
use zero initializers instead of memset(), also change PointerRNA_NULL from an extern into a define.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index f6fb213358c..0578be94983 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -3426,12 +3426,10 @@ void wm_window_keymap(wmKeyConfig *keyconf) /* Generic itemf's for operators that take library args */ static EnumPropertyItem *rna_id_itemf(bContext *UNUSED(C), PointerRNA *UNUSED(ptr), int *free, ID *id, int local) { - EnumPropertyItem *item= NULL, item_tmp; + EnumPropertyItem item_tmp= {0}, *item= NULL; int totitem= 0; int i= 0; - memset(&item_tmp, 0, sizeof(item_tmp)); - for( ; id; id= id->next) { if(local==FALSE || id->lib==NULL) { item_tmp.identifier= item_tmp.name= id->name+2; |