ID3v2: Address review comments

Change the size check to use isEmpty() as requested.
This commit is contained in:
bobsayshilol
2021-05-02 12:14:27 +02:00
committed by Urs Fleisch
parent d74689cb93
commit 4971f8fb03
+1 -1
View File
@@ -118,7 +118,7 @@ void OwnershipFrame::parseFields(const ByteVector &data)
int pos = 0;
// Need at least 1 byte for the encoding
if(data.size() - pos < 1) {
if(data.isEmpty()) {
return;
}