diff options
Diffstat (limited to 'vmeta_lib.c')
-rw-r--r-- | vmeta_lib.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vmeta_lib.c b/vmeta_lib.c index 109e632..364c035 100644 --- a/vmeta_lib.c +++ b/vmeta_lib.c @@ -431,12 +431,11 @@ SIGN32 vdec_os_driver_init(void) // Prepare the vdec os driver control interface vdec_iface = malloc(sizeof(vdec_os_driver_cb_t)); - memset(vdec_iface, 0, sizeof(vdec_os_driver_cb_t)); - if(vdec_iface == NULL) - { + if(vdec_iface == NULL) { pthread_mutex_unlock(&pmt); return -VDEC_OS_DRIVER_INIT_FAIL; } + memset(vdec_iface, 0, sizeof(vdec_os_driver_cb_t)); // initialize reference count vdec_iface->refcount++; |