resourcemanager: Fix memset warning.
authorAndreas Schneider <asn@cryptomilk.org>
Mon, 30 Mar 2015 14:41:46 +0000 (16:41 +0200)
committerGerrit Code Review <gerrit@cyanogenmod.org>
Tue, 31 Mar 2015 17:19:13 +0000 (17:19 +0000)
Change-Id: I286e775723eba09f5686f8ab71a0f3ce40e12bb9
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
component/common/Exynos_OMX_Resourcemanager.c

index c040b6a861fb7ef462d76859a1d2aed7e3ea031f..4ac9bd53e4a9cc724774224144c89fb912d126a9 100644 (file)
@@ -301,8 +301,8 @@ OMX_ERRORTYPE Exynos_OMX_ResourceManager_Init()
 
     if (ret == OMX_ErrorNone) {
         Exynos_OSAL_MutexLock(ghVideoRMComponentListMutex);
-        Exynos_OSAL_Memset(gpRMList, NULL, (sizeof(EXYNOS_OMX_RM_COMPONENT_LIST*) * RESOURCE_MAX));
-        Exynos_OSAL_Memset(gpRMWaitList, NULL, (sizeof(EXYNOS_OMX_RM_COMPONENT_LIST*) * RESOURCE_MAX));
+        Exynos_OSAL_Memset(gpRMList, 0, (sizeof(EXYNOS_OMX_RM_COMPONENT_LIST*) * RESOURCE_MAX));
+        Exynos_OSAL_Memset(gpRMWaitList, 0, (sizeof(EXYNOS_OMX_RM_COMPONENT_LIST*) * RESOURCE_MAX));
         Exynos_OSAL_MutexUnlock(ghVideoRMComponentListMutex);
     }