Skip to content

Commit

Permalink
Bug 1759846 - the 'empty' method should be used to check for emptines…
Browse files Browse the repository at this point in the history
…s. r=sylvestre

In ClearKeyUtils.cpp: the 'empty' method should be used to check
for emptiness instead of 'size'

Differential Revision: https://phabricator.services.mozilla.com/D141956
  • Loading branch information
tvaleev committed Mar 24, 2022
1 parent a817ec0 commit afaa238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion media/gmp-clearkey/0.1/ClearKeyUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static bool EncodeBase64Web(vector<uint8_t> aBinary, string& aEncoded) {
void ClearKeyUtils::MakeKeyRequest(const vector<KeyId>& aKeyIDs,
string& aOutRequest,
SessionType aSessionType) {
assert(aKeyIDs.size() && aOutRequest.empty());
assert(!aKeyIDs.empty() && aOutRequest.empty());

aOutRequest.append("{\"kids\":[");
for (size_t i = 0; i < aKeyIDs.size(); i++) {
Expand Down

0 comments on commit afaa238

Please sign in to comment.