diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-04 19:34:50 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-04 19:34:50 +0800 |
commit | 23b5b5fa36530eb82543d7d877f8e9e1900232cf (patch) | |
tree | e728dd7a61b0a34045d438701721bd9bf0629f34 /ethutil/script.go | |
parent | d5bcc01eae2912528e8ab2a65733c84fa3f8f4e1 (diff) | |
download | go-tangerine-23b5b5fa36530eb82543d7d877f8e9e1900232cf.tar go-tangerine-23b5b5fa36530eb82543d7d877f8e9e1900232cf.tar.gz go-tangerine-23b5b5fa36530eb82543d7d877f8e9e1900232cf.tar.bz2 go-tangerine-23b5b5fa36530eb82543d7d877f8e9e1900232cf.tar.lz go-tangerine-23b5b5fa36530eb82543d7d877f8e9e1900232cf.tar.xz go-tangerine-23b5b5fa36530eb82543d7d877f8e9e1900232cf.tar.zst go-tangerine-23b5b5fa36530eb82543d7d877f8e9e1900232cf.zip |
Length check
Diffstat (limited to 'ethutil/script.go')
-rw-r--r-- | ethutil/script.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ethutil/script.go b/ethutil/script.go index aaa0f8ed8..fa05094e7 100644 --- a/ethutil/script.go +++ b/ethutil/script.go @@ -13,7 +13,7 @@ func Compile(script string) (ret []byte, err error) { if len(script) > 2 { line := strings.Split(script, "\n")[0] - if line[0:2] == "#!" { + if len(line) > 1 && line[0:2] == "#!" { switch line { case "#!serpent": byteCode, err := serpent.Compile(script) |