qdutils: Return on null param
Clients can use null param to unset metadata CRs-Fixed: 2027597 Change-Id: Ia6ce7af5445938da4d0c66d9e184d82cc3f4b5b7
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user