qdutils: Return on null param

Clients can use null param to unset metadata
CRs-Fixed: 2027597
Change-Id: Ia6ce7af5445938da4d0c66d9e184d82cc3f4b5b7
This commit is contained in:
Naseer Ahmed
2017-03-31 15:31:18 -04:00
parent ffb4b396ed
commit 8d1434ab2a

View File

@@ -71,6 +71,8 @@ int setMetaData(private_handle_t *handle, DispParamType paramType,
// If parameter is NULL reset the specific MetaData Key // If parameter is NULL reset the specific MetaData Key
if (!param) { if (!param) {
data->operation &= ~paramType; data->operation &= ~paramType;
// param unset
return 0;
} }
data->operation |= paramType; data->operation |= paramType;