[client] Add missing "var" for local variables