aboutsummaryrefslogtreecommitdiffstats
path: root/bpfix
diff options
context:
space:
mode:
authorandroid-build-prod (mdb) <android-build-team-robot@google.com>2018-05-08 01:05:10 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-05-08 01:05:10 +0000
commit720f04b96488a55ecc3ee70f50ca6d1bbe43ffac (patch)
tree50d678bf591cdccb2148a2f2dc70be112674a9b3 /bpfix
parentdde8cb961589782c8cd3566560193de804d40fb5 (diff)
parentd6989f2e5225145a26af0844c11b310dfbe76483 (diff)
downloadbuild_soong-720f04b96488a55ecc3ee70f50ca6d1bbe43ffac.tar.gz
build_soong-720f04b96488a55ecc3ee70f50ca6d1bbe43ffac.tar.bz2
build_soong-720f04b96488a55ecc3ee70f50ca6d1bbe43ffac.zip
Merge changes I52f88bfd,I4263b7d5
* changes: Fix usage of bytes.NewBuffer in bpfix Add a dependency fixer for proto deps
Diffstat (limited to 'bpfix')
-rw-r--r--bpfix/cmd/bpfix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bpfix/cmd/bpfix.go b/bpfix/cmd/bpfix.go
index 2fde3836..ccdae165 100644
--- a/bpfix/cmd/bpfix.go
+++ b/bpfix/cmd/bpfix.go
@@ -65,7 +65,7 @@ func processFile(filename string, in io.Reader, out io.Writer, fixRequest bpfix.
if err != nil {
return err
}
- r := bytes.NewBuffer(src)
+ r := bytes.NewBuffer(append([]byte(nil), src...))
file, errs := parser.Parse(filename, r, parser.NewScope(nil))
if len(errs) > 0 {
for _, err := range errs {