X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=gbm.c;h=935349c3684f12156acf8ac1b1ac47ddb8f73adb;hb=d3f07bd673cdc8a2c165aa2b921cbc21e3e945f2;hp=a6ccaaa3372da20bdfa974164fc93bc9cac30b0a;hpb=dcdd245451f3c0f02ad118533f21da42e35304a4;p=android-x86%2Fexternal-minigbm.git diff --git a/gbm.c b/gbm.c index a6ccaaa..935349c 100644 --- a/gbm.c +++ b/gbm.c @@ -194,13 +194,12 @@ PUBLIC struct gbm_bo *gbm_bo_import(struct gbm_device *gbm, uint32_t type, void uint32_t usage) { struct gbm_bo *bo; - struct drv_import_fd_data drv_data; + struct drv_import_fd_data drv_data = { 0 }; struct gbm_import_fd_data *fd_data = buffer; struct gbm_import_fd_modifier_data *fd_modifier_data = buffer; uint32_t gbm_format; size_t num_planes, i, num_fds; - memset(&drv_data, 0, sizeof(drv_data)); drv_data.use_flags = gbm_convert_usage(usage); switch (type) { case GBM_BO_IMPORT_FD: