aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-04 19:34:50 +0800
committerobscuren <geffobscura@gmail.com>2014-07-04 19:34:50 +0800
commit23b5b5fa36530eb82543d7d877f8e9e1900232cf (patch)
treee728dd7a61b0a34045d438701721bd9bf0629f34 /ethutil
parentd5bcc01eae2912528e8ab2a65733c84fa3f8f4e1 (diff)
downloadgo-tangerine-23b5b5fa36530eb82543d7d877f8e9e1900232cf.tar.gz
go-tangerine-23b5b5fa36530eb82543d7d877f8e9e1900232cf.tar.zst
go-tangerine-23b5b5fa36530eb82543d7d877f8e9e1900232cf.zip
Length check
Diffstat (limited to 'ethutil')
-rw-r--r--ethutil/script.go2
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)