diff options
author | android-build-prod (mdb) <android-build-team-robot@google.com> | 2018-05-08 01:05:10 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-05-08 01:05:10 +0000 |
commit | 720f04b96488a55ecc3ee70f50ca6d1bbe43ffac (patch) | |
tree | 50d678bf591cdccb2148a2f2dc70be112674a9b3 /bpfix | |
parent | dde8cb961589782c8cd3566560193de804d40fb5 (diff) | |
parent | d6989f2e5225145a26af0844c11b310dfbe76483 (diff) | |
download | build_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.go | 2 |
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 { |