summaryrefslogtreecommitdiff
path: root/opengl/libagl/BufferObjectManager.cpp
diff options
context:
space:
mode:
author Greg Kaiser <gkaiser@google.com> 2019-03-11 14:09:53 -0700
committer Greg Kaiser <gkaiser@google.com> 2019-03-11 14:09:53 -0700
commitcc5f51751baab67383509e04c7746047ac7d2a4c (patch)
tree3874643919b61ebde9bd38a86cef49003bacb0fd /opengl/libagl/BufferObjectManager.cpp
parent326456a2a172952f5558629ed49168aa51db1e32 (diff)
cmds/service: Fix categoryCount
By introducing a new 'categoryCount' in an inner scope, and only incrementing it within this inner scope, we're assured that when we leave this scope, our "if (categoryCount > 0)" will always be false, not matter how 'categories' we added. This almost certainly is not the intention of this code, so we removing the inner scope declaration of the variable, so that 'categoryCount' will be updated. Bug: 28288587 Test: TreeHugger Change-Id: Ie592a02c5baa1eb5527ddd8d726e3b1181d937fd
Diffstat (limited to 'opengl/libagl/BufferObjectManager.cpp')
0 files changed, 0 insertions, 0 deletions