fix incorrect use of local

local can only be used in functions, this probably broke other
projects but no one yet complained.

Change-Id: I1a80ae4838769d8ea9ec6b090f277a9a1f338dbf
Merge "fix incorrect use of local"