Skip to content

Commit

Permalink
Silence clang analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Aug 8, 2018
1 parent ec1191f commit 96b390e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WhateverGreen/kern_rad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ void RAD::mergeProperty(OSDictionary *props, const char *name, OSObject *value)

// Consult the original value to make a decision
auto orgValue = props->getObject(name);
if (orgValue) {
if (val && orgValue) {
DBGLOG("rad", "prop %s has original value", name);
if (len == sizeof(uint32_t) && OSDynamicCast(OSNumber, orgValue)) {
auto num = *reinterpret_cast<const uint32_t *>(val);
Expand Down

0 comments on commit 96b390e

Please sign in to comment.