summaryrefslogtreecommitdiff
path: root/libqdutils
diff options
context:
space:
mode:
authorNaseer Ahmed <naseer@codeaurora.org>2017-03-31 15:31:18 -0400
committerNaseer Ahmed <naseer@codeaurora.org>2017-03-31 16:01:26 -0400
commit8d1434ab2a0e370a2bee800d427621f9ab18f60c (patch)
tree591aed1117dbd5f3f62d160c45b59d3117cb54b4 /libqdutils
parentffb4b396ed2ed2a51a478daa8b1635d0a0ccbfe0 (diff)
downloaddisplay-8d1434ab2a0e370a2bee800d427621f9ab18f60c.tar.gz
qdutils: Return on null param
Clients can use null param to unset metadata CRs-Fixed: 2027597 Change-Id: Ia6ce7af5445938da4d0c66d9e184d82cc3f4b5b7
Diffstat (limited to 'libqdutils')
-rw-r--r--libqdutils/qdMetaData.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libqdutils/qdMetaData.cpp b/libqdutils/qdMetaData.cpp
index af86eeef..f1eece96 100644
--- a/libqdutils/qdMetaData.cpp
+++ b/libqdutils/qdMetaData.cpp
@@ -71,6 +71,8 @@ int setMetaData(private_handle_t *handle, DispParamType paramType,
// If parameter is NULL reset the specific MetaData Key
if (!param) {
data->operation &= ~paramType;
+ // param unset
+ return 0;
}
data->operation |= paramType;