summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author George Burgess IV <gbiv@google.com> 2017-01-31 16:21:25 -0800
committer George Burgess IV <gbiv@google.com> 2017-01-31 16:21:25 -0800
commit2c3ccaedaf54dfde879470753f3db61bc3e7c7d3 (patch)
treeae2d80c7b276ff25ea6647bebfc23fb693d0ba02 /vulkan/libvulkan/api.cpp
parent9dc2e6bc438a2025ae243acd0d7ba5599b20c4e0 (diff)
Fix a use-of-uninitialized-value warning
Caught by clang's static analyzer: frameworks/base/core/jni/com_google_android_gles_jni_GLImpl.cpp:190:30: warning: The right operand of '+' is a garbage value buf = (char*)buf + offset; This is because getPointer doesn't always set `offset` to a value. We could fix it locally by initializing `offset`, but it seems to be less error-prone to just fix getPointer instead. Bug: None Test: Still builds; warning is now gone. Change-Id: I90bea0c94cf8d7f92a0d9a4db4e64e7e563bfb09
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions