summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author George Burgess IV <gbiv@google.com> 2022-02-22 12:59:53 -0800
committer George Burgess IV <gbiv@google.com> 2022-02-22 13:03:04 -0800
commitd53c27404d916dbb7686add4173acc57861889da (patch)
tree585b0c57ef1ccf53293214be30bd73e8800da8a8 /libs/hwui/FrameInfoVisualizer.cpp
parent7db2d81ae0478e040a1f497e8126a20103c9d43f (diff)
bit: avoid calling strdup(NULL)
It seems the behavior of strdup is undefined when NULL is passed in. Clang's static analyzer complains about this: > frameworks/base/tools/bit/command.cpp:195:25: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker] Since we don't seem to care about malloc failures (which is a good thing IMO), adding a second check for the successful completion of `strdup` seems pointless. Bug: 206470603 Test: TreeHugger Change-Id: Ib621659e6fb600203694974f02d96ba0acb3362f
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions