Skip to content

Commit

Permalink
Fix another issue spotted by PVS-Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajSchlej committed Sep 10, 2022
1 parent 22d1db8 commit a9c6f34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/bstrlib/bstrlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ char * r;

if (b == NULL || b->slen < 0 || b->data == NULL) return NULL;
l = b->slen;
r = (char *) bstr__alloc ((size_t) (l + 1));
r = (char *) bstr__alloc ((size_t)l + 1);
if (r == NULL) return r;

for (i=0; i < l; i ++) {
Expand Down
2 changes: 1 addition & 1 deletion common/ffsparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4513,7 +4513,7 @@ USTATUS FfsParser::parseCpdRegion(const UByteArray & region, const UINT32 localO
info += UString("\nHash: ") + UString(hash.toHex().constData());

UModelIndex codeIndex = model->addItem(localOffset + partitions[i].ptEntry.Offset.Offset, Types::CpdPartition, Subtypes::CodeCpdPartition, name, UString(), info, UByteArray(), partition, UByteArray(), Fixed, parent);
parseRawArea(codeIndex);
(void)parseRawArea(codeIndex);
}
}
else if (partitions[i].type == Types::Padding) {
Expand Down

0 comments on commit a9c6f34

Please sign in to comment.