diff options
author | Bastien Montagne <bastien@blender.org> | 2021-11-05 17:04:56 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-11-05 17:05:45 +0300 |
commit | da9785965611762f9922231eed9bc3c170cb2b9f (patch) | |
tree | 30e6cb82a0aa4d5e20e683b1970c9952ba2d9a64 /source/blender/windowmanager/intern | |
parent | 00734d57248423b982e75f9d2398e4b7cdf1fe4a (diff) |
Fix potential uninitialized memory in link/append code.
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files_link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_files_link.c b/source/blender/windowmanager/intern/wm_files_link.c index 97e610b797d..b45cf765a75 100644 --- a/source/blender/windowmanager/intern/wm_files_link.c +++ b/source/blender/windowmanager/intern/wm_files_link.c @@ -259,7 +259,7 @@ static WMLinkAppendDataItem *wm_link_append_data_item_add(WMLinkAppendData *lapp const short idcode, void *customdata) { - WMLinkAppendDataItem *item = BLI_memarena_alloc(lapp_data->memarena, sizeof(*item)); + WMLinkAppendDataItem *item = BLI_memarena_calloc(lapp_data->memarena, sizeof(*item)); size_t len = strlen(idname) + 1; item->name = BLI_memarena_alloc(lapp_data->memarena, len); |